Ejemplo n.º 1
0
 private void butDeleteTemplate_Click(object sender, System.EventArgs e)
 {
     if (listTemplates.SelectedIndex == -1)
     {
         MessageBox.Show(Lan.g(this, "Please select an item first."));
         return;
     }
     if (MessageBox.Show(Lan.g(this, "Delete e-mail template?"), "", MessageBoxButtons.OKCancel)
         != DialogResult.OK)
     {
         return;
     }
     EmailTemplates.Delete(EmailTemplates.List[listTemplates.SelectedIndex]);
     EmailTemplates.Refresh();
     templatesChanged = true;
     FillList();
 }