Exemple #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(lbID.Text))
     {
         bool isOK = FromEvents.DeleteLinkDTO(lbID.Text);
         if (isOK)
         {
             CleanLinkDTO();
         }
         ListLinkDTO = FromEvents.GetListLinkDTO();
         LoadLinkDTOToListView(ListLinkDTO);
     }
 }
Exemple #2
0
 private void btSubDelete_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(lbSubID.Text))
     {
         bool isOK = FromEvents.DeleteLinkDTO(lbSubID.Text);
         if (isOK)
         {
             CleanSubLinkDTO();
         }
         var link = FromEvents.GetLinkDTO(lbID.Text, ListLinkDTO);
         LoadSubLinkDTOToListView(link.ListSubLink);
     }
     else
     {
         MessageBox.Show("aidhsa");
     }
 }