private void RefreshTemplateNode(TemplateNode tn) { if (tn != null) { tn.Nodes.Clear(); Collection <ModuleInfo> modules = ConfigCtrl.GetModules(tn.Template.FullPath); foreach (ModuleInfo module in modules) { ModuleNode xn = new ModuleNode(module.ModuleName); xn.Module = module; tn.Nodes.Add(xn); } } }
private void OpenXsltTemplateClick(object o, EventArgs e) { try { ModuleNode mn = this.SelectedNode as ModuleNode; if (mn != null && mn.Module != null) { ModuleNodeEventArgs mne = new ModuleNodeEventArgs(); mne.Module = mn.Module; OnOpenXsltTemplate(mne); } } catch (Exception ex) { MessageBox.Show(ex.Message, CGConstants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void RefreshTemplateNode(TemplateNode tn) { if (tn != null) { tn.Nodes.Clear(); Collection<ModuleInfo> modules = ConfigCtrl.GetModules(tn.Template.FullPath); foreach (ModuleInfo module in modules) { ModuleNode xn = new ModuleNode(module.ModuleName); xn.Module = module; tn.Nodes.Add(xn); } } }