private void cboxVeh_SelectedIndexChanged(object sender, EventArgs e) { SettingsIO.ImportSettings(mf.commDirectory + cboxEnv.SelectedItem.ToString() + ".xml"); DialogResult = DialogResult.OK; Close(); }
private void btnSave_Click(object sender, EventArgs e) { if (tboxName.Text.Trim().Length > 0) { SettingsIO.ExportSettings(mf.commDirectory + tboxName.Text.Trim() + ".xml"); Close(); } }
private void btnSave_Click(object sender, EventArgs e) { if (tboxName.Text.Trim().Length > 0) { SettingsIO.ExportSettings(mf.commDirectory + tboxName.Text.Trim() + ".xml"); Close(); } else { DialogResult result3 = MessageBox.Show("Enter a File Name To Save...", gStr.gsSaveAndReturn, MessageBoxButtons.OK); } }
private void cboxVeh_SelectedIndexChanged(object sender, EventArgs e) { DialogResult result3 = MessageBox.Show( "Overwrite: " + cboxEnv.SelectedItem.ToString() + ".xml", gStr.gsSaveAndReturn, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2); if (result3 == DialogResult.Yes) { SettingsIO.ExportSettings(mf.commDirectory + cboxEnv.SelectedItem.ToString() + ".xml"); Close(); } }