Skip to content

Commit c4a30bc

Browse files
committed
Version 0.3.1 release
1 parent 2f66e0e commit c4a30bc

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

AssistantComputerControl/AssistantComputerControl.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
</ItemGroup>
9797
<ItemGroup>
9898
<Compile Include="ACC_Updater.cs" />
99-
<Compile Include="actionChecker.cs" />
100-
<Compile Include="configValidator.cs" />
99+
<Compile Include="ActionChecker.cs" />
100+
<Compile Include="ConfigValidator.cs" />
101101
<Compile Include="MainProgram.cs" />
102102
<Compile Include="Properties\AssemblyInfo.cs" />
103103
<Compile Include="Properties\Resources.Designer.cs">

AssistantComputerControl/MainProgram.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,23 @@ private static void ConfigSetup() {
5656
DoDebug("Config file is empty. Setting content...");
5757
CreateSetConfig();
5858
} else {
59-
if (configValidator.config("config_version") != softwareVersion) {
59+
if (ConfigValidator.config("config_version") != softwareVersion) {
6060
//Config is different version than the software version
6161
DoDebug("Config is different version than software");
6262

6363
//Get and save config values
64-
Dictionary<string, string> configValues = configValidator.getValues();
64+
Dictionary<string, string> configValues = ConfigValidator.getValues();
6565
//Set config to the newest version
6666
File.WriteAllText(configFilePath, string.Empty);
6767
CreateSetConfig();
6868
//Set config values back to old ones
69-
configValidator.WriteKey(configValues);
69+
ConfigValidator.WriteKey(configValues);
7070
}
7171
}
7272
}
7373

7474
//Setting variables to config values...
75-
configValidator validator = new configValidator();
75+
ConfigValidator validator = new ConfigValidator();
7676

7777
var originalActionFilePath = actionFilePath;
7878
validator.Validate("ActionFilePath", ref actionFilePath);
@@ -107,7 +107,7 @@ private static void CreateSetConfig() {
107107
static public void ClearFile(string filePath) {
108108
DoDebug("Clearing file");
109109
if (File.Exists(filePath)) {
110-
while (actionChecker.fileInUse(filePath)) ;
110+
while (ActionChecker.fileInUse(filePath)) ;
111111
File.Delete(filePath);
112112
DoDebug("Action-file deleted");
113113
} else {
@@ -218,7 +218,7 @@ static void Main(string[] args) {
218218
watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite
219219
| NotifyFilters.FileName | NotifyFilters.DirectoryName;
220220
watcher.Filter = "*.txt";
221-
watcher.Changed += new FileSystemEventHandler(actionChecker.FileFound);
221+
watcher.Changed += new FileSystemEventHandler(ActionChecker.FileFound);
222222
watcher.EnableRaisingEvents = true;
223223
/* END WATCHER */
224224

AssistantComputerControl/actionChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using AudioSwitcher.AudioApi.CoreAudio;
88

99
namespace AssistantComputerControl {
10-
class actionChecker {
10+
class ActionChecker {
1111
private static CoreAudioController coreAudio = null;
1212
private static CoreAudioDevice defaultPlaybackDevice;
1313
private static string successMessage = "";
0 Bytes
Binary file not shown.

AssistantComputerControl/configValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Collections.Generic;
44

55
namespace AssistantComputerControl {
6-
class configValidator {
6+
class ConfigValidator {
77
private enum validateTypes {
88
str,
99
integer,
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)