protected virtual void OnOpenSolutionTemplate(SolutionNodeEventArgs e) { if (OpenSolutionTemplate != null) { OpenSolutionTemplate(this, e); } }
private void OpenSolutionClick(object o, EventArgs e) { try { SolutionNode sn = this.SelectedNode as SolutionNode; if (sn != null && sn.Solution != null) { SolutionNodeEventArgs sne = new SolutionNodeEventArgs(); sne.Solution = sn.Solution; OnOpenSolutionTemplate(sne); } } catch (Exception ex) { MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error); } }