Exemple #1
0
 public CheckBuyForm()
 {
     InitializeComponent();
     foreach (string a in baket)
     {
         comboBox1.Items.Add(a);
     }
     addEdit = new AddEditForm(this);
 }
Exemple #2
0
 private void btnedit_Click(object sender, EventArgs e)
 {
     if (treeView.SelectedNode != null)
     {
         treeView.Focus();
         AddEditForm editForm = new AddEditForm();
         if (editForm.ShowDialog() == DialogResult.OK)
         {
             _wf.Edit(treeView.SelectedNode, editForm.CategoryName);
         }
     }
 }
Exemple #3
0
 private void btnaddleaf_Click(object sender, EventArgs e)
 {
     if (treeView.SelectedNode != null)
     {
         treeView.Focus();
         AddEditForm editForm = new AddEditForm();
         if (editForm.ShowDialog() == DialogResult.OK)
         {
             TreeNode node = _wf.AddNode(treeView.SelectedNode, editForm.CategoryName);
             treeView.SelectedNode = node;
             treeView.Focus();
         }
     }
 }