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

            formCostTypeInput.Tag   = "Add"; //添加状态
            formCostTypeInput.Owner = this;
            formCostTypeInput.ShowDialog();
        }
Пример #3
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (tvCostType.SelectedNode != null)
     {
         if (tvCostType.SelectedNode.Tag != null)
         {
             FormBSCostTypeInput formCostTypeInput = new FormBSCostTypeInput();
             formCostTypeInput.Tag   = "Edit"; //编辑状态
             formCostTypeInput.Owner = this;
             formCostTypeInput.ShowDialog();
         }
     }
 }
Пример #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (tvCostType.SelectedNode != null)
     {
         if (tvCostType.SelectedNode.Tag != null)
         {
             FormBSCostTypeInput formCostTypeInput = new FormBSCostTypeInput();
             formCostTypeInput.Tag = "Edit"; //编辑状态
             formCostTypeInput.Owner = this;
             formCostTypeInput.ShowDialog();
         }
     }
 }