Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        private void databaseConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            dbConnectionForm dbForm = new dbConnectionForm();
            DialogResult     res    = dbForm.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                db = new DataPipe();
                if (CheckIfInitialized())
                {
                    RefreshFontList();
                    RefreshSubList();
                    RefreshLangList();
                }
                else
                {
                    MessageBox.Show("Franken+ was unable to initialize properly.  Please address the following issues and then restart Franken+:\r\n\r\n" + InitializationError);
                }
            }
        }
Exemplo n.º 2
0
        private void databaseConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            dbConnectionForm dbForm = new dbConnectionForm();
            DialogResult res = dbForm.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                db = new DataPipe();
                if (CheckIfInitialized())
                {
                    RefreshFontList();
                    RefreshSubList();
                    RefreshLangList();
                }
                else
                {
                    MessageBox.Show("Franken+ was unable to initialize properly.  Please address the following issues and then restart Franken+:\r\n\r\n" + InitializationError);
                }
            }
        }