Пример #1
0
 private void EditDoc()
 {
     FormEmplEdit EditData = new FormEmplEdit();
     //if (!ActivateForm(EditData))
     if (!this.CheckOpened(EditData.Name))
     {
         EditData.EmplId = ClassCurUser.LogInEmplId;
         EditData.EmplName = ClassCurUser.LogInEmplName;
         EditData.Key = ClassCurUser.LogInEmplKey;
         EditData.StartPosition = FormStartPosition.CenterParent;
         EditData.WindowState = FormWindowState.Maximized;
         EditData.MdiParent = this;
         EditData.Show();
     }
 }
Пример #2
0
        public void EditDoc()
        {
            FormEmplEdit EditData = new FormEmplEdit();
            EditData.EmplId = ClassCurUser.LogInEmplId;
            EditData.EmplName = ClassCurUser.LogInEmplName;
            EditData.Key = ClassCurUser.LogInEmplKey;

            EditData.StartPosition = FormStartPosition.CenterParent;

            EditData.MdiParent = this;
            EditData.Show();
        }