public override void NaturalizeLayout()
        {
            // Wizard views are very broken in the VS Form Designer, due to runtime control layout.
            if (DesignMode)
            {
                return;
            }

            MaximizeWidth(textBoxSiteUrl);
            MaximizeWidth(labelPostsPath);
            MaximizeWidth(textBoxPostsPath);
            MaximizeWidth(labelPagesPath);
            MaximizeWidth(textBoxPagesPath);
            MaximizeWidth(checkBoxPagesInRoot);
            MaximizeWidth(labelDraftsPath);
            MaximizeWidth(textBoxDraftsPath);

            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelSiteUrl, textBoxSiteUrl);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelPostsPath, textBoxPostsPath);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelPagesPath, textBoxPagesPath, checkBoxPagesInRoot);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelDraftsPath, textBoxDraftsPath);

            LayoutHelper.DistributeVerticallyNoScale(10, false,
                                                     new ControlGroup(labelSiteUrl, textBoxSiteUrl),
                                                     new ControlGroup(labelPostsPath, textBoxPostsPath),
                                                     new ControlGroup(labelPagesPath, textBoxPagesPath, checkBoxPagesInRoot),
                                                     new ControlGroup(labelDraftsPath, textBoxDraftsPath)
                                                     );
        }
Пример #2
0
        public override void NaturalizeLayout()
        {
            // Wizard views are very broken in the VS Form Designer, due to runtime control layout.
            if (DesignMode)
            {
                return;
            }

            MaximizeWidth(labelSubtitle);
            MaximizeWidth(labelBuildCommand);
            MaximizeWidth(labelBuildCommandSubtitle);
            MaximizeWidth(textBoxBuildCommand);
            MaximizeWidth(labelPublishCommand);
            MaximizeWidth(labelPublishCommandSubtitle);
            MaximizeWidth(textBoxPublishCommand);

            LayoutHelper.NaturalizeHeight(labelSubtitle);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelBuildCommand, labelBuildCommandSubtitle, textBoxBuildCommand);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelPublishCommand, labelPublishCommandSubtitle, textBoxPublishCommand);

            LayoutHelper.DistributeVerticallyNoScale(10, false,
                                                     labelSubtitle,
                                                     new ControlGroup(labelBuildCommand, labelBuildCommandSubtitle, textBoxBuildCommand),
                                                     new ControlGroup(labelPublishCommand, labelPublishCommandSubtitle, textBoxPublishCommand)
                                                     );
        }
        public override void NaturalizeLayout()
        {
            // Wizard views are very broken in the VS Form Designer, due to runtime control layout.
            if (DesignMode)
            {
                return;
            }

            MaximizeWidth(labelSubtitle);
            MaximizeWidth(checkBoxPagesEnabled);
            MaximizeWidth(checkBoxDraftsEnabled);
            MaximizeWidth(checkBoxImagesEnabled);
            MaximizeWidth(checkBoxBuildingEnabled);

            LayoutHelper.NaturalizeHeight(labelSubtitle);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3,
                                                              checkBoxPagesEnabled,
                                                              checkBoxDraftsEnabled,
                                                              checkBoxImagesEnabled,
                                                              checkBoxBuildingEnabled);

            LayoutHelper.DistributeVerticallyNoScale(10, false,
                                                     labelSubtitle,
                                                     new ControlGroup(checkBoxPagesEnabled,
                                                                      checkBoxDraftsEnabled,
                                                                      checkBoxImagesEnabled,
                                                                      checkBoxBuildingEnabled)
                                                     );
        }
Пример #4
0
        public override void NaturalizeLayout()
        {
            // Wizard views are very broken in the VS Form Designer, due to runtime control layout.
            if (DesignMode)
            {
                return;
            }

            MaximizeWidth(labelImagesPath);
            MaximizeWidth(textBoxImagesPath);
            MaximizeWidth(labelOutputPath);
            MaximizeWidth(textBoxOutputPath);

            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelImagesPath, textBoxImagesPath);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelOutputPath, textBoxOutputPath);

            LayoutHelper.DistributeVerticallyNoScale(10, false,
                                                     new ControlGroup(labelImagesPath, textBoxImagesPath),
                                                     new ControlGroup(labelOutputPath, textBoxOutputPath)
                                                     );
        }
        public override void NaturalizeLayout()
        {
            // Wizard views are very broken in the VS Form Designer, due to runtime control layout.
            if (DesignMode)
            {
                return;
            }

            MaximizeWidth(labelSubtitle);
            MaximizeWidth(labelLocalSitePath);

            LayoutHelper.DistributeHorizontally(5, textBoxLocalSitePath, btnLocalSiteBrowse);
            LayoutHelper.NaturalizeHeight(labelSubtitle);
            LayoutHelper.NaturalizeHeightAndDistributeNoScale(3, labelLocalSitePath, textBoxLocalSitePath);

            // Align browse button exactly with textbox
            btnLocalSiteBrowse.Height = textBoxLocalSitePath.Height;
            btnLocalSiteBrowse.Top    = textBoxLocalSitePath.Top;

            LayoutHelper.DistributeVerticallyNoScale(20, false,
                                                     labelSubtitle,
                                                     new ControlGroup(labelLocalSitePath, textBoxLocalSitePath, btnLocalSiteBrowse)
                                                     );
        }