Ejemplo n.º 1
0
 private void ButtonAdd_Click(object sender, EventArgs e)
 {
     if (cat == 0)
     {
         using (FormUser form = new FormUser(true, "")) form.ShowDialog();
     }
     //if (cat == 1) using (FormUser form = new FormUser(true, "")) form.ShowDialog();
     //if (cat == 2) using (FormUser form = new FormUser(true, "")) form.ShowDialog();
     Refresh();
 }
Ejemplo n.º 2
0
 private void ButtonEdit_Click(object sender, EventArgs e)
 {
     if (cat == 0)
     {
         using (FormUser form = new FormUser(false, listViewCat.SelectedItems[0].Text)) form.ShowDialog();
     }
     //if (cat == 1) using (FormUser form = new FormUser(false, listViewCat.SelectedItems[0].Text)) form.ShowDialog();
     //if (cat == 2) using (FormUser form = new FormUser(false, listViewCat.SelectedItems[0].Text)) form.ShowDialog();
     Refresh();
 }