Exemple #1
0
 void Auto_update_1sec(object sender, EventArgs e)
 {
     DisplayErrors();
     //update server each second if its changed
     if (!ErrorHandler.isError(102))
     {
         if (laucherSettings.GetClientLocation() != serverSettings.GetClientLocation())
         {
             serverSettings.SetClientLocation(laucherSettings.GetClientLocation());
         }
     }
 }
Exemple #2
0
        private void CheckAllErrors()
        {
            string check_client_file = laucherSettings.GetClientLocation() + @"\" + laucherSettings.GetClientFilename() + ".exe";

            if (!File.Exists(check_client_file))
            {
                ErrorHandler.AddError(111, "Cannot find client at this location.");
            }
            string check_server_file = laucherSettings.GetServerLocation() + @"\" + laucherSettings.GetServerFilename() + ".exe";

            if (!File.Exists(check_server_file))
            {
                ErrorHandler.AddError(112, "Cannot find server at this location.");
            }
            DisplayErrors();
        }
Exemple #3
0
        private void LoadLauncherSettings()
        {
            // reload config files
            LoadAllSettings();

            // load the settings
            //load locations
            ClientLocation.Text = laucherSettings.GetClientLocation();
            ServerLocation.Text = laucherSettings.GetServerLocation();
            //load filenames
            ClientFileName.Text = laucherSettings.GetClientFilename();
            ServerFileName.Text = laucherSettings.GetServerFilename();
        }