private void OnAddModuleClick(object o, EventArgs e) { try { TemplateNode tn = this.SelectedNode as TemplateNode; if (tn != null) { DlgAddModule dlgam = new DlgAddModule(); dlgam.Template = tn.Template; if (dlgam.ShowDialog() == DialogResult.OK) { RefreshTemplateNode(tn); } } } catch (Exception ex) { MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void OnAddModuleClick(object o, EventArgs e) { try { TemplateNode tn = this.SelectedNode as TemplateNode; if (tn != null) { DlgAddModule dlgam = new DlgAddModule(); dlgam.Template = tn.Template; if (dlgam.ShowDialog() == DialogResult.OK) { RefreshTemplateNode(tn); } } } catch (Exception ex) { MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error); } }