Esempio n. 1
0
 private void btDelete_Click(object sender, EventArgs e)
 {
     if (listBoxMain.SelectedIndex != -1)
     {
         if (MessageBox.Show("Are you sure you want to delete this DelayStartup App", "Are You Sure", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
         {
             LinkMaster myDel = new LinkMaster();
             myDel.DeleteLink((LinkType)listBoxMain.SelectedItem);
         }
     }
     ListBoxMainRefresh();
 }
Esempio n. 2
0
 private void btDelete_Click(object sender, EventArgs e)
 {
     if (listBoxMain.SelectedIndex != -1)
     {
         if (MessageBox.Show("Are you sure you want to delete this DelayStartup App", "Are You Sure", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
         {
             LinkMaster myDel = new LinkMaster();
             myDel.DeleteLink((LinkType)listBoxMain.SelectedItem);
         }
     }
     ListBoxMainRefresh();
 }