private void btnAdd_Click(object sender, EventArgs e)
 {
     FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();
     formDepartmentInput.Tag = "Add"; //添加操作
     formDepartmentInput.Owner = this;
     formDepartmentInput.ShowDialog();
 }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormBSDepartmentInput formDepartmentInput = new FormBSDepartmentInput();

            formDepartmentInput.Tag   = "Add"; //添加操作
            formDepartmentInput.Owner = this;
            formDepartmentInput.ShowDialog();
        }
 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();
         }
     }
 }
 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();
         }
     }
 }