コード例 #1
0
 private void OnDeleteVsVersionClick(object o, EventArgs e)
 {
     try
     {
         if (MessageBox.Show("Are you sure?", "Confirm", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2) == DialogResult.OK)
         {
             VsVersionNode vvn = this.SelectedNode as VsVersionNode;
             if (vvn != null && vvn.VsVersion != null)
             {
                 ConfigCtrl.DeleteVsTemplate(vvn.VsVersion);
                 InitialNodes();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }