Esempio n. 1
0
        private void smbtnSQL_Click(object sender, EventArgs e)
        {
            bool exits = false;
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(frmDaily))
                {
                    form.Activate();
                    form.BringToFront();
                    form.WindowState = FormWindowState.Normal;
                    exits = true;
                    break;
                }
            }

            if (!exits)
            {
                frmDaily frm = new frmDaily();
                frm.MdiParent = this;
                frm.Show();
            }
        }
Esempio n. 2
0
        private void smbtnSQL_Click(object sender, EventArgs e)
        {
            bool exits = false;

            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(frmDaily))
                {
                    form.Activate();
                    form.BringToFront();
                    form.WindowState = FormWindowState.Normal;
                    exits            = true;
                    break;
                }
            }

            if (!exits)
            {
                frmDaily frm = new frmDaily();
                frm.MdiParent = this;
                frm.Show();
            }
        }
Esempio n. 3
0
 public frmImport(frmDaily frm)
 {
     InitializeComponent();
     dgvSP.AutoGenerateColumns = false;
     _parentForm = frm;
 }
Esempio n. 4
0
 public frmImport(frmDaily frm)
 {
     InitializeComponent();
     dgvSP.AutoGenerateColumns = false;
     _parentForm = frm;
 }