Example #1
0
 private void mainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_animator.Abort();
     s_instance = null;
 }
Example #2
0
        internal static void ShowInstance(int initScreenIndex)
        {
            if (s_instance == null) {
                s_instance = new MainForm();
            }
            if (initScreenIndex == 0) {
                s_instance.confPanel.Left = 0;
                s_instance.confPanel.Visible = true;
                s_instance.takePicturePanel.Visible = false;
                s_instance.Text = Application.ProductName + " - " + Language.FormatString(Language.LanguageString.MainForm_Configuration_Title);
            } else {
                s_instance.takePictureSaveButton.Enabled = false;
                s_instance.takePicturePanel.Left = 0;
                s_instance.takePicturePanel.Visible = true;
                s_instance.confPanel.Visible = false;
                s_instance.Text = Application.ProductName + " - " + Language.FormatString(Language.LanguageString.MainForm_TakePicture_Title);
                s_instance.TakePicture(null, null);
            }

            s_instance.Show();
            s_instance.BringToFront();
        }