Ejemplo n.º 1
0
        private void tSMI_preferences_Click(object sender, EventArgs e)
        {
            EditPreferences preferencesDialog = new EditPreferences();

            preferencesDialog.ShowDialog();
            LoadConfig();
        }
Ejemplo n.º 2
0
        private void tSMI_startReadImageProgram_Click(object sender, EventArgs e)
        {
            string burnApplication = _config.AppSettings.Settings["BurnApplication"].Value;

            if (!string.IsNullOrEmpty(burnApplication) &&
                File.Exists(burnApplication))
            {
                Process.Start(burnApplication);
            }
            else
            {
                if (MessageBox.Show(
                        "There is no image reading application specified or the specified application could not be found. Would you like to edit the preferences now?",
                        "No application specified",
                        MessageBoxButtons.YesNo,
                        MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    EditPreferences preferences = new EditPreferences();
                    preferences.ShowDialog();
                }
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// If the database connection could not be established this method offers the user to
 /// verify the configuration data
 /// </summary>
 private void VerifyPreferences()
 {
     if (MessageBox.Show(
             "The database connection could not be established. Please verify that the connection string is set up corretly. Would you like to edit the preferences now?",
             "Database connection errror",
             MessageBoxButtons.YesNo,
             MessageBoxIcon.Question) == DialogResult.Yes)
     {
         EditPreferences preferencesDialog = new EditPreferences();
         if (preferencesDialog.ShowDialog() == DialogResult.OK)
         {
             LoadConfig();
         }
         else
         {
             Application.Exit();
         }
     }
     else
     {
         Application.Exit();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// If the database connection could not be established this method offers the user to 
 /// verify the configuration data
 /// </summary>
 private void VerifyPreferences()
 {
     if (MessageBox.Show(
         "The database connection could not be established. Please verify that the connection string is set up corretly. Would you like to edit the preferences now?",
         "Database connection errror",
         MessageBoxButtons.YesNo,
         MessageBoxIcon.Question) == DialogResult.Yes)
     {
         EditPreferences preferencesDialog = new EditPreferences();
         if (preferencesDialog.ShowDialog() == DialogResult.OK)
         {
             LoadConfig();
         }
         else Application.Exit();
     }
     else Application.Exit();
 }
Ejemplo n.º 5
0
 private void tSMI_startReadImageProgram_Click(object sender, EventArgs e)
 {
     string burnApplication = _config.AppSettings.Settings["BurnApplication"].Value;
     if (!string.IsNullOrEmpty(burnApplication) &&
         File.Exists(burnApplication))
     {
         Process.Start(burnApplication);
     }
     else
     {
         if (MessageBox.Show(
             "There is no image reading application specified or the specified application could not be found. Would you like to edit the preferences now?",
             "No application specified",
             MessageBoxButtons.YesNo,
             MessageBoxIcon.Question) == DialogResult.Yes)
         {
             EditPreferences preferences = new EditPreferences();
             preferences.ShowDialog();
         }
     }
 }
Ejemplo n.º 6
0
 private void tSMI_preferences_Click(object sender, EventArgs e)
 {
     EditPreferences preferencesDialog = new EditPreferences();
     preferencesDialog.ShowDialog();
     LoadConfig();
 }