Exemplo 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();
            }
        }
Exemplo 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();
            }
        }
Exemplo n.º 3
0
 public frmImport(frmDaily frm)
 {
     InitializeComponent();
     dgvSP.AutoGenerateColumns = false;
     _parentForm = frm;
 }
Exemplo n.º 4
0
 public frmImport(frmDaily frm)
 {
     InitializeComponent();
     dgvSP.AutoGenerateColumns = false;
     _parentForm = frm;
 }