Example #1
0
 protected virtual void OnOpenXsltTemplate(ModuleNodeEventArgs e)
 {
     if (OpenModule != null)
     {
         OpenModule(this, e);
     }
 }
        private void templateTree_OpenModule(object sender, ModuleNodeEventArgs e)
        {
            try
            {
                //get the top form
                MainForm mainform = this.TopLevelControl as MainForm;
                if (mainform != null)
                    mainform.OpenFile(e.Module.FullName, e.Module.ModuleName);

            }
            catch (Exception ex)
            {
                Program.ShowMessageBox("FrmTemplateManager.templateTree_OpenXsltTemplate", ex);
            }  
        }              
Example #3
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);
     }
 }
Example #4
0
 protected virtual void OnOpenXsltTemplate(ModuleNodeEventArgs e)
 {
     if (OpenModule != null)
         OpenModule(this, e);
 }
Example #5
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);
     }
 }