Example #1
0
        private void cboxVeh_SelectedIndexChanged(object sender, EventArgs e)
        {
            SettingsIO.ImportSettings(mf.commDirectory + cboxEnv.SelectedItem.ToString() + ".xml");

            DialogResult = DialogResult.OK;
            Close();
        }
Example #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (tboxName.Text.Trim().Length > 0)
     {
         SettingsIO.ExportSettings(mf.commDirectory + tboxName.Text.Trim() + ".xml");
         Close();
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
        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();
            }
        }