Skip to content

Commit

Permalink
Version 0.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertMN committed May 7, 2018
1 parent 2f66e0e commit c4a30bc
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions AssistantComputerControl/AssistantComputerControl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ACC_Updater.cs" />
<Compile Include="actionChecker.cs" />
<Compile Include="configValidator.cs" />
<Compile Include="ActionChecker.cs" />
<Compile Include="ConfigValidator.cs" />
<Compile Include="MainProgram.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
Expand Down
12 changes: 6 additions & 6 deletions AssistantComputerControl/MainProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,23 @@ private static void ConfigSetup() {
DoDebug("Config file is empty. Setting content...");
CreateSetConfig();
} else {
if (configValidator.config("config_version") != softwareVersion) {
if (ConfigValidator.config("config_version") != softwareVersion) {
//Config is different version than the software version
DoDebug("Config is different version than software");

//Get and save config values
Dictionary<string, string> configValues = configValidator.getValues();
Dictionary<string, string> configValues = ConfigValidator.getValues();
//Set config to the newest version
File.WriteAllText(configFilePath, string.Empty);
CreateSetConfig();
//Set config values back to old ones
configValidator.WriteKey(configValues);
ConfigValidator.WriteKey(configValues);
}
}
}

//Setting variables to config values...
configValidator validator = new configValidator();
ConfigValidator validator = new ConfigValidator();

var originalActionFilePath = actionFilePath;
validator.Validate("ActionFilePath", ref actionFilePath);
Expand Down Expand Up @@ -107,7 +107,7 @@ private static void CreateSetConfig() {
static public void ClearFile(string filePath) {
DoDebug("Clearing file");
if (File.Exists(filePath)) {
while (actionChecker.fileInUse(filePath)) ;
while (ActionChecker.fileInUse(filePath)) ;
File.Delete(filePath);
DoDebug("Action-file deleted");
} else {
Expand Down Expand Up @@ -218,7 +218,7 @@ static void Main(string[] args) {
watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite
| NotifyFilters.FileName | NotifyFilters.DirectoryName;
watcher.Filter = "*.txt";
watcher.Changed += new FileSystemEventHandler(actionChecker.FileFound);
watcher.Changed += new FileSystemEventHandler(ActionChecker.FileFound);
watcher.EnableRaisingEvents = true;
/* END WATCHER */

Expand Down
2 changes: 1 addition & 1 deletion AssistantComputerControl/actionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using AudioSwitcher.AudioApi.CoreAudio;

namespace AssistantComputerControl {
class actionChecker {
class ActionChecker {
private static CoreAudioController coreAudio = null;
private static CoreAudioDevice defaultPlaybackDevice;
private static string successMessage = "";
Expand Down
Binary file modified AssistantComputerControl/bin/Debug/AssistantComputerControl.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion AssistantComputerControl/configValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;

namespace AssistantComputerControl {
class configValidator {
class ConfigValidator {
private enum validateTypes {
str,
integer,
Expand Down
Binary file modified AssistantComputerControl/obj/Debug/AssistantComputerControl.exe
Binary file not shown.
Binary file not shown.
Binary file modified AssistantComputerControl/obj/Debug/AssistantComputerControl.pdb
Binary file not shown.
Binary file not shown.

0 comments on commit c4a30bc

Please sign in to comment.