This class is used for window creation
コード例 #1
0
 /// <summary>
 /// the method is used to show wizard form and do the creation
 /// </summary>
 /// <returns>the process result</returns>
 public int RunWizard()
 {
     int result = 0;
     m_para = new WizardParameter();           
     m_para.m_template = "DoubleHung";
     if (m_para.m_template == "DoubleHung")
     {
         m_winCreator = new DoubleHungWinCreation(m_para, m_commandData);
     }
     using (WizardForm form = new WizardForm(m_para))
     {
         switch(form.ShowDialog())
         {
             case DialogResult.Cancel:
                 result=0;
                 break;
             case DialogResult.OK:
                 if (Creation())
                     result = 1;
                 else
                     result = -1;
                 break;
             default :
                 result=-1;
                 break;
         }           
     }
     return result;
 }
コード例 #2
0
ファイル: WindowWizard.cs プロジェクト: AMEE/revit
 /// <summary>
 /// the method is used to show wizard form and do the creation
 /// </summary>
 /// <returns>the process result</returns>
 public int RunWizard()
 {
     int result = 0;
     m_para = new WizardParameter();
     m_para.m_template = "DoubleHung";
     if (m_para.m_template == "DoubleHung")
     {
         m_winCreator = new DoubleHungWinCreation(m_para, m_commandData);
     }
     using (WizardForm form = new WizardForm(m_para))
     {
         switch(form.ShowDialog())
         {
             case DialogResult.Cancel:
                 result=0;
                 break;
             case DialogResult.OK:
                 if (Creation())
                     result = 1;
                 else
                     result = -1;
                 break;
             default :
                 result=-1;
                 break;
         }
     }
     return result;
 }