Beispiel #1
0
 private async void btnDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Are you sure you want to remove this dependent?",
                         "Remove Dependent?", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         ServiceCalls.DeleteDependent(Id);
         if (this.Parent.GetType() == typeof(DependentsForm))
         {
             ((DependentsForm)this.Parent).RefreshGrid = true;
         }
         WindowHelper.CloseParent(this);
     }
 }