예제 #1
0
        private void MyTaskToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MdiChildren.Count() > 0)
            {
                MdiChildren[0].Close();

                MyTaskForm my_task = new MyTaskForm();

                my_task.MdiParent = this;
                my_task.Anchor    = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
                my_task.Show();
            }
        }
예제 #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (Values.AuthRole_user == 2)
            {
                ListUsersToolStripMenuItem.Visible = false;
                RoleUsersToolStripMenuItem.Visible = false;
            }

            MyTaskForm my_task = new MyTaskForm();

            my_task.MdiParent = this;
            my_task.Anchor    = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            my_task.Show();
        }