예제 #1
0
        private void ShowFormDBSetting()
        {
            #region Show Form DBSetting
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(FormDBSetting))
                {
                    form.WindowState = FormWindowState.Normal;
                    form.BringToFront();
                    form.Focus();
                    return;
                }
            }

            FormDBSetting formDBSetting = new FormDBSetting {
                MdiParent = this
            };
            formDBSetting.Show();
            formDBSetting.Activate();
            formDBSetting.Focus();

            #endregion Show Form DBSetting
        }
예제 #2
0
 public FormDBSetting()
 {
     InitializeComponent();
     Forms = this;
     FormDashBoard.Forms.ToolStripSettingDataBase.ForeColor = Color.DarkGreen;
 }