示例#1
0
        public ProjectOptions(List <IWizardControl> controls)
        {
            ProjectControl projectControl = GetProjectControl(controls);

            ProjectType       = ToProjectType(projectControl.SelectedProjectType(1033), projectControl.UseTools);
            ProjectFolderType = projectControl.SelectedProjectFolderType(1033);
            ProjectFolder     = projectControl.CalculatedFolder;

            EnvironmentControl envControl = GetEnvironmentControl(controls);

            Language            = ToLanguage(envControl.SelectedLanguage);
            IDE                 = ToIDE(envControl.SelectedIDE);
            NetRuntime          = ToRuntime(envControl.SelectedRuntime);
            UseNetRuntimeClient = ToRuntimeUseClient(envControl.SelectedRuntime);

            HostControl hostControl = GetHostControl(controls);

            SetOfficeApps(hostControl);

            NameControl nameControl = GetNameControl(controls);

            AssemblyName        = nameControl.AssemblyName;
            AssemblyDescription = nameControl.AssemblyDescription;

            LoadControl loadControl = GetLoadControl(controls);

            LoadBehaviour = Convert.ToInt32(loadControl.LoadBehaviour);
            RegistryKey   = loadControl.Hivekey;

            GuiControl guiControl = GetGuiControl(controls);

            UseClassicUI = guiControl.ClassicUIEnabled;
            UseRibbonUI  = guiControl.RibbonUIEnabled;
            UseTaskPane  = guiControl.TaskPaneEnabled;
        }
示例#2
0
 private static string GetRibbonFileReferences()
 {
     foreach (Control item in _listControls)
     {
         NameControl nameControl = item as NameControl;
         if (null != nameControl)
         {
             return(nameControl.AssemblyName);
         }
     }
     throw new ArgumentOutOfRangeException("NameControl");
 }
示例#3
0
 private static string GetDescription()
 {
     foreach (Control item in _listControls)
     {
         NameControl nameControl = item as NameControl;
         if (null != nameControl)
         {
             return(nameControl.AssemblyDescription);
         }
     }
     throw new ArgumentOutOfRangeException("NameControl");
 }
示例#4
0
 private NameControl GetNameControl(List <IWizardControl> controls)
 {
     foreach (var item in controls)
     {
         NameControl ctrl = item as NameControl;
         if (null != ctrl)
         {
             return(ctrl);
         }
     }
     throw new IndexOutOfRangeException("controls");
 }
示例#5
0
        private void LoadControls()
        {
            ProjectControl     control0 = new ProjectControl();
            EnvironmentControl control1 = new EnvironmentControl();
            HostControl        control2 = new HostControl();
            NameControl        control3 = new NameControl();
            LoadControl        control4 = new LoadControl();
            GuiControl         control5 = new GuiControl();

            _listControls.Add(control0);
            _listControls.Add(control1);
            _listControls.Add(control2);
            _listControls.Add(control3);
            _listControls.Add(control4);
            _listControls.Add(control5);

            panelControls.Controls.Add(control0);
            panelControls.Controls.Add(control1);
            panelControls.Controls.Add(control2);
            panelControls.Controls.Add(control3);
            panelControls.Controls.Add(control4);
            panelControls.Controls.Add(control5);

            control0.Dock = DockStyle.Fill;
            control1.Dock = DockStyle.Fill;
            control2.Dock = DockStyle.Fill;
            control3.Dock = DockStyle.Fill;
            control4.Dock = DockStyle.Fill;
            control4.Dock = DockStyle.Fill;

            SummaryControl control6 = new SummaryControl(_listControls);

            _listControls.Add(control6);
            panelControls.Controls.Add(control6);
            control6.Dock = DockStyle.Fill;
        }
示例#6
0
        private void LoadControls()
        {
            ProjectControl control0 = new ProjectControl();
            EnvironmentControl control1 = new EnvironmentControl();
            HostControl control2 = new HostControl();
            NameControl control3 = new NameControl();
            LoadControl control4 = new LoadControl();
            GuiControl control5 = new GuiControl();

            _listControls.Add(control0);
            _listControls.Add(control1);
            _listControls.Add(control2);
            _listControls.Add(control3);
            _listControls.Add(control4);
            _listControls.Add(control5);

            panelControls.Controls.Add(control0);
            panelControls.Controls.Add(control1);
            panelControls.Controls.Add(control2);
            panelControls.Controls.Add(control3);
            panelControls.Controls.Add(control4);
            panelControls.Controls.Add(control5);

            control0.Dock = DockStyle.Fill;
            control1.Dock = DockStyle.Fill;
            control2.Dock = DockStyle.Fill;
            control3.Dock = DockStyle.Fill;
            control4.Dock = DockStyle.Fill;
            control4.Dock = DockStyle.Fill;

            SummaryControl control6 = new SummaryControl(_listControls);

            _listControls.Add(control6);
            panelControls.Controls.Add(control6);
            control6.Dock = DockStyle.Fill;
        }