Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 private EnvironmentControl GetEnvironmentControl(List <IWizardControl> controls)
 {
     foreach (var item in controls)
     {
         EnvironmentControl ctrl = item as EnvironmentControl;
         if (null != ctrl)
         {
             return(ctrl);
         }
     }
     throw new IndexOutOfRangeException("controls");
 }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 4
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;
        }