Пример #1
0
 private void remove_item_Click(object sender, EventArgs e)
 {
     if (list_estoque.SelectedItem != null)
     {
         var selectedItem = Convert.ToInt32(list_estoque.SelectedItem.ToString().Split('|').First());
         var remove       = new RemoverItem(selectedItem);
         remove.ShowDialog();
         UpdateForm(selectedItem);
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     _removerItem.ShowDialog();
 }