示例#1
0
        private void alertaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form mdiChildForm in MdiChildren)
            {
                mdiChildForm.Close();
            }

            Atencao form = new Atencao(this);

            form.WindowState = System.Windows.Forms.FormWindowState.Normal;
            form.MdiParent   = this;
            form.Location    = new Point(370, 180);
            form.Show();
        }
示例#2
0
        public MenuPrincipal(Perfis perfil)
        {
            InitializeComponent();
            _RepositoryChamado = new ControlChamado();

            Atencao form = new Atencao(this);

            this.LayoutMdi(MdiLayout.Cascade);
            form.WindowState = System.Windows.Forms.FormWindowState.Normal;
            form.MdiParent   = this;
            form.Location    = new Point(370, 180);
            form.Show();


            if (perfil != null)
            {
                Perfil(perfil);
            }
        }