Esempio n. 1
0
        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);
                }
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
                }
            }
        }