Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();
     formDepartmentInput.Tag = "Add"; //添加操作
     formDepartmentInput.Owner = this;
     formDepartmentInput.ShowDialog();
 }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();

            formDepartmentInput.Tag   = "Add"; //添加操作
            formDepartmentInput.Owner = this;
            formDepartmentInput.ShowDialog();
        }
Пример #3
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (tvDepartment.SelectedNode != null)
     {
         if (tvDepartment.SelectedNode.Tag != null)
         {
             FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();
             formDepartmentInput.Tag   = "Edit"; //修改操作
             formDepartmentInput.Owner = this;
             formDepartmentInput.ShowDialog();
         }
     }
 }
Пример #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (tvDepartment.SelectedNode != null)
     {
         if (tvDepartment.SelectedNode.Tag != null)
         {
             FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();
             formDepartmentInput.Tag = "Edit"; //修改操作
             formDepartmentInput.Owner = this;
             formDepartmentInput.ShowDialog();
         }
     }
 }