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(); }
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(); }
private void OnChangeClientFilename(object sender, TextChangedEventArgs e) { laucherSettings.SetClientFilename(ClientFileName.Text); }