示例#1
0
 private void DisplayCurrentPage() 
 {
     if(m_viewModel.CurrentState == PackageBuilderWizardPage.Config)
     {
         m_settingsPage = new PackageBuilderSettingsPage(m_viewModel);
         this.mainVBox.Add(m_settingsPage);
         this.mainVBox.ShowAll();
         this.generateButton.Visible = true;
     } 
     else
     {
         if(m_settingsPage != null) 
         {
             this.mainVBox.Remove(m_settingsPage);
             this.generateButton.Visible = false;
         }
         m_mainPage = new PackageBuilderMainPage(m_viewModel);
         this.mainVBox.Add(m_mainPage);
         this.mainVBox.ShowAll();
         this.buildPackageButton.Visible = true;
     }
 }
示例#2
0
 private void DisplayCurrentPage()
 {
     if (m_viewModel.CurrentState == PackageBuilderWizardPage.Config)
     {
         m_settingsPage = new PackageBuilderSettingsPage(m_viewModel);
         this.mainVBox.Add(m_settingsPage);
         this.mainVBox.ShowAll();
         this.generateButton.Visible = true;
     }
     else
     {
         if (m_settingsPage != null)
         {
             this.mainVBox.Remove(m_settingsPage);
             this.generateButton.Visible = false;
         }
         m_mainPage = new PackageBuilderMainPage(m_viewModel);
         this.mainVBox.Add(m_mainPage);
         this.mainVBox.ShowAll();
         this.buildPackageButton.Visible = true;
     }
 }