Exemplo n.º 1
0
 private void DeleteButton_Click(object sender, EventArgs e)
 {
     var name = OperatorsListBox.SelectedItem;
     if (name != null)
     {
         var db = new DataProcess();
         db.deleteOperator(name.ToString());
         LoadOperatorsList();
     }
 }
Exemplo n.º 2
0
        private void DeleteButton_Click(object sender, EventArgs e)
        {
            var name = OperatorsListBox.SelectedItem;

            if (name != null)
            {
                var db = new DataProcess();
                db.deleteOperator(name.ToString());
                LoadOperatorsList();
            }
        }