@@ -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
0 commit comments