예제 #1
0
        private void ShowInitStaff()//knc
        {
            this.SuspendLayout();
            mInitStaffForm           = new NewStaff();
            mInitStaffForm.MdiParent = this;
            //mInitStaffForm.OnStaffSelected += new StaffSelectedEventHandler(InitStaff_Staff_Click);

            // mInitStaffForm.TopMost = true;
            //mInitStaffForm.Text = Properties.Resources.ViewStaff;

            mInitStaffForm.WindowState   = FormWindowState.Maximized;
            mInitStaffForm.StartPosition = FormStartPosition.CenterParent;
            mInitStaffForm.FormClosed   += new FormClosedEventHandler(mNewStaffForm_FormClosed);
            this.Text = Properties.Resources.titleSecurityCenter;
            Application.DoEvents();
            this.ResumeLayout(true);
            this.PerformLayout();
            mInitStaffForm.Show();
        }
예제 #2
0
        public void ShowNewStaff()
        {
            EnableCopyMenu(false);            // Rally DE1778 - If the user cannot copy or paste anything then don't display the edit feature.
            EnablePasteMenu(false);

            if (IsFormLoaded("NewStaff"))
            {
                return;                //Bring the form to the front
            }

            this.SuspendLayout();
            mNewStaffForm             = new NewStaff(); // Create a new instance of the child form.
            mNewStaffForm.MdiParent   = this;           // Make it a child of this MDI form before showing it.
            mNewStaffForm.WindowState = FormWindowState.Maximized;
            mNewStaffForm.FormClosed += new FormClosedEventHandler(mNewStaffForm_FormClosed);
            mNewStaffForm.Show();            //childForm.Text = "Window " + childFormNumber++;
            this.Text = Properties.Resources.titleSecurityCenter;
            this.ResumeLayout(true);
            this.PerformLayout();
        }