コード例 #1
0
 public static DialogResult Show(string Text, string Caption, string btnAnnul, string btnSuppr)
 {
     MsgBox                    = new MessageBoxCustom();
     MsgBox.label1.Text        = Text;
     MsgBox.simpleButton1.Text = btnAnnul;
     MsgBox.simpleButton2.Text = btnSuppr;
     MsgBox.ShowDialog();
     return(result);
 }
コード例 #2
0
        private void SupprClientButton_Click(object sender, EventArgs e)
        {
            var result = MessageBoxCustom.Show("Etes-vous sûr de vouloir supprimer DEFINITIVEMENT ?", "MSG", "Annuler!", "Oui");

            if (result == DialogResult.OK)
            {
                int[] index = gridView1.GetSelectedRows();
                for (int i = index.Length - 1; i >= 0; i--)
                {
                    gridView1.DeleteRow(index[i]);
                }
                SqlHelper.UpdateBDDEntete();
            }
        }