Пример #1
0
        private void btnDftrSupp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(dftrSupp))
                {
                    form.Activate();
                    return;
                }
            }

            dftrSupp supp = new dftrSupp();

            supp.MdiParent = this;
            supp.Show();
        }
Пример #2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            dftrSupp supp = new dftrSupp();

            supp.ShowDialog();
        }