Пример #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 GetLoadBehaviour()
 {
     foreach (Control item in _listControls)
     {
         LoadControl loadControl = item as LoadControl;
         if (null != loadControl)
         {
             return(loadControl.LoadBehaviour);
         }
     }
     throw new ArgumentOutOfRangeException("LoadControl");
 }
Пример #3
0
 private LoadControl GetLoadControl(List <IWizardControl> controls)
 {
     foreach (var item in controls)
     {
         LoadControl ctrl = item as LoadControl;
         if (null != ctrl)
         {
             return(ctrl);
         }
     }
     throw new IndexOutOfRangeException("controls");
 }
Пример #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;
        }
Пример #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;
        }