Exemple #1
0
        private void OnChangeServerFilename(object sender, TextChangedEventArgs e)
        {
            laucherSettings.SetServerFilename(ServerFileName.Text);
            string check_server_file = laucherSettings.GetServerLocation() + @"\" + laucherSettings.GetServerFilename() + ".exe";

            if (!File.Exists(check_server_file))
            {
                ErrorHandler.AddError(112, "Cannot find server at this location.");
            }
            else
            {
                ErrorHandler.RemoveError(112, "Cannot find server at this location.");
            }
            DisplayErrors();
        }
Exemple #2
0
        private void OnChangeServerFilename(object sender, TextChangedEventArgs e)
        {
            laucherSettings.SetServerFilename(ServerFileName.Text);
            string check_server_file = laucherSettings.GetServerLocation() + @"\" + laucherSettings.GetServerFilename() + ".exe";

            LoadAllSettings();
            if (!File.Exists(check_server_file))
            {
                ErrorHandler.AddError(ErrorType.error_Server_noLocation);
            }
            else
            {
                serverWatcher.ChangeAppName(laucherSettings.GetServerFilename());
                ErrorHandler.RemoveError(ErrorType.error_Server_noLocation);
            }
            DisplayErrors();
            LoadAllSettings();
        }
Exemple #3
0
 private void OnChangeServerFilename(object sender, TextChangedEventArgs e)
 {
     laucherSettings.SetServerFilename(ServerFileName.Text);
 }