Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 private void OnChangeClientLocation(object sender, TextChangedEventArgs e)
 {
     laucherSettings.SetClientLocation(ClientLocation.Text);
 }