Exemple #1
0
        private void OnChangeClientFilename(object sender, TextChangedEventArgs e)
        {
            laucherSettings.SetClientFilename(ClientFileName.Text);
            string check_client_file = laucherSettings.GetClientLocation() + @"\" + laucherSettings.GetClientFilename() + ".exe";

            if (!File.Exists(check_client_file))
            {
                ErrorHandler.AddError(111, "Cannot find client at this location.");
            }
            else
            {
                ErrorHandler.RemoveError(111, "Cannot find client at this location.");
            }
            DisplayErrors();
        }
Exemple #2
0
        private void OnChangeClientFilename(object sender, TextChangedEventArgs e)
        {
            laucherSettings.SetClientFilename(ClientFileName.Text);
            string check_client_file = laucherSettings.GetClientLocation() + @"\" + laucherSettings.GetClientFilename() + ".exe";

            if (!File.Exists(check_client_file))
            {
                ErrorHandler.AddError(ErrorType.error_Client_noLocation);
            }
            else
            {
                clientWatcher.ChangeAppName(laucherSettings.GetClientFilename());
                ErrorHandler.RemoveError(ErrorType.error_Client_noLocation);
            }
            DisplayErrors();
            LoadAllSettings();
        }
Exemple #3
0
 private void OnChangeClientFilename(object sender, TextChangedEventArgs e)
 {
     laucherSettings.SetClientFilename(ClientFileName.Text);
 }