public MainPageEditor()
        {
            InitializeComponent();

            bool Flag = false;

            try
            {
                using (MySqlConnection con = Util.Connection)
                {
                    con.Open();
                }
            }
            catch (MySqlException)
            {
                Flag = true;
            }
            finally
            {
                if (Flag)
                {
                    LoadPreferences fm = new LoadPreferences();
                    fm.StartPosition = FormStartPosition.CenterScreen;
                    fm.TopMost = true;
                    fm.Show();
                }
                else
                    this.Load += new EventHandler(Form1_Load);
            }
        }
Beispiel #2
0
        public MainPageEditor()
        {
            InitializeComponent();

            bool Flag = false;

            try
            {
                using (MySqlConnection con = Util.Connection)
                {
                    con.Open();
                }
            }
            catch (MySqlException)
            {
                Flag = true;
            }
            finally
            {
                if (Flag)
                {
                    LoadPreferences fm = new LoadPreferences();
                    fm.StartPosition = FormStartPosition.CenterScreen;
                    fm.TopMost       = true;
                    fm.Show();
                }
                else
                {
                    this.Load += new EventHandler(Form1_Load);
                }
            }
        }
Beispiel #3
0
        void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LoadPreferences fm = new LoadPreferences();

            fm.Show();
        }
 void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LoadPreferences fm = new LoadPreferences();
     fm.Show();
 }