private void OnDeleteSolutionClick(object o, EventArgs e) { try { if (MessageBox.Show("Are you sure?", "Confirm", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2) == DialogResult.OK) { SolutionNode sn = this.SelectedNode as SolutionNode; if (sn != null && sn.Solution != null) { ConfigCtrl.DeleteSolution(sn.Solution); VsVersionNode vvn = sn.Parent as VsVersionNode; RefreshVsVersionNode(vvn); } } } catch (Exception ex) { MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error); } }