Example #1
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     MessagesView.Deletemessage dm = new MessagesView.Deletemessage();
     dm.ShowDialog();
     if (dm.yes == 1)
     {
         DAOs.MessagesDAO.deleteMessages((Message)mbs[0]);
         this.Close();
     }
 }
Example #2
0
 private void DelBtn_Click(object sender, EventArgs e)
 {
     MessagesView.Deletemessage dm = new MessagesView.Deletemessage();
     dm.ShowDialog();
     if (dm.yes == 1)
     {
         new DAOs.FactorDAO(db).deleteFactor((Factor)fb.Current);
         updateTable();
     }
 }
Example #3
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     MessagesView.Deletemessage dm = new MessagesView.Deletemessage();
     dm.ShowDialog();
     if (dm.yes == 1)
     {
         new DAOs.FactorDAO(db).deleteFactor((Factor)fb[0]);
         this.Close();
     }
 }
Example #4
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     MessagesView.Deletemessage dm = new MessagesView.Deletemessage();
     dm.ShowDialog();
     if (dm.yes == 1)
     {
         ppb.Clear();
         DAOs.ProjectsDAO.deleteProjects((Project)pb[0]);
         this.Close();
     }
 }