private void OnChangeClientLocation(object sender, TextChangedEventArgs e) { laucherSettings.SetClientLocation(ClientLocation.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 OnChangeClientLocation(object sender, TextChangedEventArgs e) { laucherSettings.SetClientLocation(ClientLocation.Text); string check_client_file = laucherSettings.GetClientLocation() + @"\" + laucherSettings.GetClientFilename() + ".exe"; if (!File.Exists(check_client_file)) { ErrorHandler.AddError(ErrorType.error_Client_noLocation); } else { ErrorHandler.RemoveError(ErrorType.error_Client_noLocation); } DisplayErrors(); LoadAllSettings(); }
private void OnChangeClientLocation(object sender, TextChangedEventArgs e) { laucherSettings.SetClientLocation(ClientLocation.Text); }