Beispiel #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();
     }
 }
 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();
     }
 }
Beispiel #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();
     }
 }
Beispiel #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();
     }
 }