예제 #1
0
        private void btnConsGeral_Click(object sender, EventArgs e)
        {
            FormGridVenda grid = new FormGridVenda(this);

            grid.MdiParent = this.ParentForm;
            grid.Show();
        }
예제 #2
0
        private void consultaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool open = false;

            foreach (Form frm in this.MdiChildren)
            {
                if (frm is FormGridVenda)
                {
                    frm.BringToFront();
                    open = true;
                }
            }
            if (!open)
            {
                gridVen = new FormGridVenda(this);
                gridVen.Show();
            }
        }