Esempio n. 1
0
        private dynamic GenerateLabel(GroupLabel type, byte[] rawLabel)
        {
            switch (type)
            {
            case GroupLabel.TopGroup:
                return(Encoding.ASCII.GetString(rawLabel));

            case GroupLabel.WorldChildren:
            case GroupLabel.CellChildren:
            case GroupLabel.TopicChildren:
            case GroupLabel.CellPersistentChildren:
            case GroupLabel.CellTemporatyChildren:
            case GroupLabel.CellVisibleDistandChildren:
                return(BitConverter.ToString(rawLabel.Reverse().ToArray()).Replace("-", ""));

            case GroupLabel.InteriorCellBlock:
            case GroupLabel.InteriorCellSubBlock:
                return(BitConverter.ToInt32(rawLabel, 0));

            case GroupLabel.ExteriorCellBlock:
            case GroupLabel.ExteriorCellSubBlock:
                var x = BitConverter.ToInt16(rawLabel, 0);
                var y = BitConverter.ToInt16(rawLabel, 2);
                return(new short[, ] {
                    { x, y }
                });

            default:
                return(null);
            }
        }
Esempio n. 2
0
        public async Task <GroupLabel> CreateLabel(string ownerId, string name, string colorHex)
        {
            var label = new GroupLabel
            {
                OwnerId   = ownerId,
                Name      = name,
                IsDeleted = false,
                ColorHex  = colorHex
            };

            db.GroupLabels.Add(label);
            await db.SaveChangesAsync();

            return(label);
        }
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.showHeaderCheck = new System.Windows.Forms.CheckBox();
            this.showFooterCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label2 = new GroupLabel();

            this.allowSortingCheck = new System.Windows.Forms.CheckBox();
            label.SetBounds(4, 4, 0x1af, 0x10);
            label.Text     = System.Design.SR.GetString("DGGen_HeaderFooterGroup");
            label.TabIndex = 8;
            label.TabStop  = false;
            this.showHeaderCheck.SetBounds(12, 0x18, 160, 0x10);
            this.showHeaderCheck.TabIndex        = 9;
            this.showHeaderCheck.Text            = System.Design.SR.GetString("DGGen_ShowHeader");
            this.showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showHeaderCheck.FlatStyle       = FlatStyle.System;
            this.showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);
            this.showFooterCheck.SetBounds(12, 0x2c, 160, 0x10);
            this.showFooterCheck.TabIndex        = 10;
            this.showFooterCheck.Text            = System.Design.SR.GetString("DGGen_ShowFooter");
            this.showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showFooterCheck.FlatStyle       = FlatStyle.System;
            this.showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);
            label2.SetBounds(4, 70, 0x1af, 0x10);
            label2.Text     = System.Design.SR.GetString("DGGen_BehaviorGroup");
            label2.TabIndex = 11;
            label2.TabStop  = false;
            this.allowSortingCheck.SetBounds(12, 0x58, 160, 0x10);
            this.allowSortingCheck.Text            = System.Design.SR.GetString("DGGen_AllowSorting");
            this.allowSortingCheck.TabIndex        = 12;
            this.allowSortingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowSortingCheck.FlatStyle       = FlatStyle.System;
            this.allowSortingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowSorting);
            this.Text = System.Design.SR.GetString("DGGen_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DGGen_Desc");
            base.Size = new Size(0x1d0, 0x110);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataGridGeneralPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.allowSortingCheck, label2, this.showFooterCheck, this.showHeaderCheck, label });
        }
Esempio n. 4
0
        private void InitForm()
        {
            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            this.formatTree = new System.Windows.Forms.TreeView();
            this.stylePanel = new System.Windows.Forms.Panel();
            GroupLabel label2 = new GroupLabel();

            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.foreColorCombo        = new ColorComboBox();
            this.foreColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
            this.backColorCombo        = new ColorComboBox();
            this.backColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.fontNameCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.fontSizeCombo  = new UnsettableComboBox();
            this.fontSizeUnit   = new UnitControl();
            this.boldCheck      = new System.Windows.Forms.CheckBox();
            this.italicCheck    = new System.Windows.Forms.CheckBox();
            this.underlineCheck = new System.Windows.Forms.CheckBox();
            this.strikeOutCheck = new System.Windows.Forms.CheckBox();
            this.overlineCheck  = new System.Windows.Forms.CheckBox();
            GroupLabel label7 = new GroupLabel();

            System.Windows.Forms.Label label8 = new System.Windows.Forms.Label();
            this.horzAlignCombo     = new UnsettableComboBox();
            this.vertAlignLabel     = new System.Windows.Forms.Label();
            this.vertAlignCombo     = new UnsettableComboBox();
            this.allowWrappingCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label9 = null;

            System.Windows.Forms.Label label10 = null;
            if (base.IsDataGridMode)
            {
                this.columnPanel = new System.Windows.Forms.Panel();
                label9           = new GroupLabel();
                label10          = new System.Windows.Forms.Label();
                this.widthUnit   = new UnitControl();
            }
            label.SetBounds(4, 4, 0x6f, 14);
            label.Text     = System.Design.SR.GetString("BDLFmt_Objects");
            label.TabStop  = false;
            label.TabIndex = 2;
            this.formatTree.SetBounds(4, 20, 0xa2, 350);
            this.formatTree.HideSelection = false;
            this.formatTree.TabIndex      = 3;
            this.formatTree.AfterSelect  += new TreeViewEventHandler(this.OnSelChangedFormatObject);
            this.stylePanel.SetBounds(0xb1, 4, 230, 370);
            this.stylePanel.TabIndex = 6;
            this.stylePanel.Visible  = false;
            label2.SetBounds(0, 2, 0xe0, 14);
            label2.Text     = System.Design.SR.GetString("BDLFmt_AppearanceGroup");
            label2.TabStop  = false;
            label2.TabIndex = 1;
            label3.SetBounds(8, 0x13, 160, 14);
            label3.Text     = System.Design.SR.GetString("BDLFmt_ForeColor");
            label3.TabStop  = false;
            label3.TabIndex = 2;
            this.foreColorCombo.SetBounds(8, 0x25, 0x66, 0x16);
            this.foreColorCombo.TabIndex              = 3;
            this.foreColorCombo.TextChanged          += new EventHandler(this.OnFormatChanged);
            this.foreColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.foreColorPickerButton.SetBounds(0x72, 0x24, 0x18, 0x16);
            this.foreColorPickerButton.TabIndex              = 4;
            this.foreColorPickerButton.Text                  = "...";
            this.foreColorPickerButton.FlatStyle             = FlatStyle.System;
            this.foreColorPickerButton.Click                += new EventHandler(this.OnClickForeColorPicker);
            this.foreColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
            this.foreColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseForeColorDesc");
            label4.SetBounds(8, 0x3e, 160, 14);
            label4.Text     = System.Design.SR.GetString("BDLFmt_BackColor");
            label4.TabStop  = false;
            label4.TabIndex = 5;
            this.backColorCombo.SetBounds(8, 0x4e, 0x66, 0x16);
            this.backColorCombo.TabIndex              = 6;
            this.backColorCombo.TextChanged          += new EventHandler(this.OnFormatChanged);
            this.backColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.backColorPickerButton.SetBounds(0x72, 0x4d, 0x18, 0x16);
            this.backColorPickerButton.TabIndex              = 7;
            this.backColorPickerButton.Text                  = "...";
            this.backColorPickerButton.FlatStyle             = FlatStyle.System;
            this.backColorPickerButton.Click                += new EventHandler(this.OnClickBackColorPicker);
            this.backColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
            this.backColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseBackColorDesc");
            label5.SetBounds(8, 0x68, 160, 14);
            label5.Text     = System.Design.SR.GetString("BDLFmt_FontName");
            label5.TabStop  = false;
            label5.TabIndex = 8;
            this.fontNameCombo.SetBounds(8, 120, 200, 0x16);
            this.fontNameCombo.Sorted                = true;
            this.fontNameCombo.TabIndex              = 9;
            this.fontNameCombo.SelectedIndexChanged += new EventHandler(this.OnFontNameChanged);
            this.fontNameCombo.TextChanged          += new EventHandler(this.OnFontNameChanged);
            label6.SetBounds(8, 0x92, 160, 14);
            label6.Text     = System.Design.SR.GetString("BDLFmt_FontSize");
            label6.TabStop  = false;
            label6.TabIndex = 10;
            this.fontSizeCombo.SetBounds(8, 0xa2, 100, 0x16);
            this.fontSizeCombo.TabIndex         = 11;
            this.fontSizeCombo.MaxDropDownItems = 11;
            this.fontSizeCombo.DropDownStyle    = ComboBoxStyle.DropDownList;
            this.fontSizeCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_FS_Smaller"), System.Design.SR.GetString("BDLFmt_FS_Larger"), System.Design.SR.GetString("BDLFmt_FS_XXSmall"), System.Design.SR.GetString("BDLFmt_FS_XSmall"), System.Design.SR.GetString("BDLFmt_FS_Small"), System.Design.SR.GetString("BDLFmt_FS_Medium"), System.Design.SR.GetString("BDLFmt_FS_Large"), System.Design.SR.GetString("BDLFmt_FS_XLarge"), System.Design.SR.GetString("BDLFmt_FS_XXLarge"), System.Design.SR.GetString("BDLFmt_FS_Custom") });
            this.fontSizeCombo.SelectedIndexChanged += new EventHandler(this.OnFontSizeChanged);
            this.fontSizeUnit.SetBounds(0x70, 0xa2, 0x60, 0x16);
            this.fontSizeUnit.AllowNegativeValues        = false;
            this.fontSizeUnit.TabIndex                   = 12;
            this.fontSizeUnit.Changed                   += new EventHandler(this.OnFormatChanged);
            this.fontSizeUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_FontSizeValueDesc");
            this.fontSizeUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLFmt_FontSizeValueName");
            this.fontSizeUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLFmt_FontSizeUnitDesc");
            this.fontSizeUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLFmt_FontSizeUnitName");
            this.boldCheck.SetBounds(8, 0xba, 0x6a, 20);
            this.boldCheck.Text            = System.Design.SR.GetString("BDLFmt_FontBold");
            this.boldCheck.TabIndex        = 13;
            this.boldCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.boldCheck.FlatStyle       = FlatStyle.System;
            this.boldCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.italicCheck.SetBounds(8, 0xcc, 0x6a, 20);
            this.italicCheck.Text            = System.Design.SR.GetString("BDLFmt_FontItalic");
            this.italicCheck.TabIndex        = 14;
            this.italicCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.italicCheck.FlatStyle       = FlatStyle.System;
            this.italicCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.underlineCheck.SetBounds(8, 0xde, 0x6a, 20);
            this.underlineCheck.Text            = System.Design.SR.GetString("BDLFmt_FontUnderline");
            this.underlineCheck.TabIndex        = 15;
            this.underlineCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.underlineCheck.FlatStyle       = FlatStyle.System;
            this.underlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.strikeOutCheck.SetBounds(120, 0xba, 0x6a, 20);
            this.strikeOutCheck.Text            = System.Design.SR.GetString("BDLFmt_FontStrikeout");
            this.strikeOutCheck.TabIndex        = 0x10;
            this.strikeOutCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.strikeOutCheck.FlatStyle       = FlatStyle.System;
            this.strikeOutCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.overlineCheck.SetBounds(120, 0xcc, 0x6a, 20);
            this.overlineCheck.Text            = System.Design.SR.GetString("BDLFmt_FontOverline");
            this.overlineCheck.TabIndex        = 0x11;
            this.overlineCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.overlineCheck.FlatStyle       = FlatStyle.System;
            this.overlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            label7.SetBounds(0, 0xf6, 0xe0, 14);
            label7.Text     = System.Design.SR.GetString("BDLFmt_AlignmentGroup");
            label7.TabStop  = false;
            label7.TabIndex = 0x12;
            label8.SetBounds(8, 0x108, 160, 14);
            label8.Text     = System.Design.SR.GetString("BDLFmt_HorzAlign");
            label8.TabStop  = false;
            label8.TabIndex = 0x13;
            this.horzAlignCombo.SetBounds(8, 280, 190, 0x16);
            this.horzAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.horzAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_HA_Left"), System.Design.SR.GetString("BDLFmt_HA_Center"), System.Design.SR.GetString("BDLFmt_HA_Right"), System.Design.SR.GetString("BDLFmt_HA_Justify") });
            this.horzAlignCombo.TabIndex              = 20;
            this.horzAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.vertAlignLabel.SetBounds(8, 0x132, 160, 14);
            this.vertAlignLabel.Text     = System.Design.SR.GetString("BDLFmt_VertAlign");
            this.vertAlignLabel.TabStop  = false;
            this.vertAlignLabel.TabIndex = 0x15;
            this.vertAlignCombo.SetBounds(8, 0x142, 190, 0x16);
            this.vertAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.vertAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_VA_Top"), System.Design.SR.GetString("BDLFmt_VA_Middle"), System.Design.SR.GetString("BDLFmt_VA_Bottom") });
            this.vertAlignCombo.TabIndex              = 0x16;
            this.vertAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.allowWrappingCheck.SetBounds(8, 0x15c, 200, 0x11);
            this.allowWrappingCheck.Text            = System.Design.SR.GetString("BDLFmt_AllowWrapping");
            this.allowWrappingCheck.TabIndex        = 0x18;
            this.allowWrappingCheck.FlatStyle       = FlatStyle.System;
            this.allowWrappingCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            if (base.IsDataGridMode)
            {
                this.columnPanel.SetBounds(0xb1, 4, 0x117, 350);
                this.columnPanel.TabIndex = 7;
                this.columnPanel.Visible  = false;
                label9.SetBounds(0, 0, 0x117, 14);
                label9.Text     = System.Design.SR.GetString("BDLFmt_LayoutGroup");
                label9.TabStop  = false;
                label9.TabIndex = 0;
                label10.SetBounds(8, 20, 0x40, 14);
                label10.Text     = System.Design.SR.GetString("BDLFmt_Width");
                label10.TabStop  = false;
                label10.TabIndex = 1;
                this.widthUnit.SetBounds(80, 0x11, 0x66, 0x16);
                this.widthUnit.AllowNegativeValues        = false;
                this.widthUnit.DefaultUnit                = 0;
                this.widthUnit.TabIndex                   = 2;
                this.widthUnit.Changed                   += new EventHandler(this.OnFormatChanged);
                this.widthUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLFmt_WidthValueName");
                this.widthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_WidthValueDesc");
                this.widthUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLFmt_WidthUnitName");
                this.widthUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLFmt_WidthUnitDesc");
            }
            this.Text = System.Design.SR.GetString("BDLFmt_Text");
            base.AccessibleDescription = System.Design.SR.GetString("BDLFmt_Desc");
            base.Size = new Size(0x198, 370);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "FormatPage.ico");
            this.stylePanel.Controls.Clear();
            this.stylePanel.Controls.AddRange(new Control[] {
                this.allowWrappingCheck, this.vertAlignCombo, this.vertAlignLabel, this.horzAlignCombo, label8, label7, this.overlineCheck, this.strikeOutCheck, this.underlineCheck, this.italicCheck, this.boldCheck, this.fontSizeUnit, this.fontSizeCombo, label6, this.fontNameCombo, label5,
                this.backColorPickerButton, this.backColorCombo, label4, this.foreColorPickerButton, this.foreColorCombo, label3, label2
            });
            if (base.IsDataGridMode)
            {
                this.columnPanel.Controls.Clear();
                this.columnPanel.Controls.AddRange(new Control[] { this.widthUnit, label10, label9 });
                base.Controls.Clear();
                base.Controls.AddRange(new Control[] { this.columnPanel, this.stylePanel, this.formatTree, label });
            }
            else
            {
                base.Controls.Clear();
                base.Controls.AddRange(new Control[] { this.stylePanel, this.formatTree, label });
            }
        }
        protected override void InitForm()
        {
            base.InitForm();

            this._objectList = (ObjectList)Component;
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Commands.ico"
            );
            this.Size = new Size(402, 300);
            this.Text = SR.GetString(SR.ObjectListCommandsPage_Title);

            GroupLabel grplblCommandList = new GroupLabel();
            grplblCommandList.SetBounds(4, 4, 392, LabelHeight);
            grplblCommandList.Text = SR.GetString(SR.ObjectListCommandsPage_CommandListGroupLabel);
            grplblCommandList.TabIndex = 0;
            grplblCommandList.TabStop = false;

            TreeList.TabIndex = 1;

            Label lblText = new Label();
            lblText.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblText.Text = SR.GetString(SR.ObjectListCommandsPage_TextCaption);
            lblText.TabStop = false;
            lblText.TabIndex = TabIndex;

            _txtText = new TextBox();
            Y += LabelHeight;
            _txtText.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtText.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtText.TabIndex = TabIndex + 1;

            GroupLabel grplblData = new GroupLabel();
            grplblData.SetBounds(4, 238, 392, LabelHeight);
            grplblData.Text = SR.GetString(SR.ObjectListCommandsPage_DataGroupLabel);
            grplblData.TabIndex = TabIndex + 2;
            grplblData.TabStop = false;

            Label lblDefaultCommand = new Label();
            lblDefaultCommand.SetBounds(8, 260, 182, LabelHeight);
            lblDefaultCommand.Text = SR.GetString(SR.ObjectListCommandsPage_DefaultCommandCaption);
            lblDefaultCommand.TabStop = false;
            lblDefaultCommand.TabIndex = TabIndex + 3;

            _cmbDefaultCommand = new ComboBox();
            _cmbDefaultCommand.SetBounds(8, 276, 182, 64);
            _cmbDefaultCommand.DropDownStyle = ComboBoxStyle.DropDown;
            _cmbDefaultCommand.Sorted = true;
            _cmbDefaultCommand.TabIndex = TabIndex + 4;
            _cmbDefaultCommand.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
            _cmbDefaultCommand.TextChanged += new EventHandler(this.OnSetPageDirty);

            this.Controls.AddRange(new Control[]
                                    {
                                        grplblCommandList,
                                        lblText,
                                        _txtText,
                                        grplblData,
                                        lblDefaultCommand,
                                        _cmbDefaultCommand
                                    });
        }
        void ReleaseDesignerOutlets()
        {
            if (addNewItemBtn != null)
            {
                addNewItemBtn.Dispose();
                addNewItemBtn = null;
            }

            if (ChooseLabel != null)
            {
                ChooseLabel.Dispose();
                ChooseLabel = null;
            }

            if (closeBoxBtn != null)
            {
                closeBoxBtn.Dispose();
                closeBoxBtn = null;
            }

            if (GMUButton != null)
            {
                GMUButton.Dispose();
                GMUButton = null;
            }

            if (GoBackButton != null)
            {
                GoBackButton.Dispose();
                GoBackButton = null;
            }

            if (GroupLabel != null)
            {
                GroupLabel.Dispose();
                GroupLabel = null;
            }

            if (GroupPicker != null)
            {
                GroupPicker.Dispose();
                GroupPicker = null;
            }

            if (LaunchView != null)
            {
                LaunchView.Dispose();
                LaunchView = null;
            }

            if (PasswordField != null)
            {
                PasswordField.Dispose();
                PasswordField = null;
            }

            if (PasswordLabel != null)
            {
                PasswordLabel.Dispose();
                PasswordLabel = null;
            }

            if (SchoolLabel != null)
            {
                SchoolLabel.Dispose();
                SchoolLabel = null;
            }

            if (searchBtn != null)
            {
                searchBtn.Dispose();
                searchBtn = null;
            }

            if (SelectGroupLabel != null)
            {
                SelectGroupLabel.Dispose();
                SelectGroupLabel = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (VCUButton != null)
            {
                VCUButton.Dispose();
                VCUButton = null;
            }
        }
        /// <include file='doc\DataGridGeneralPage.uex' path='docs/doc[@for="DataGridGeneralPage.InitForm"]/*' />
        /// <devdoc>
        ///   Initializes the UI of the form.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel dataGroup       = new GroupLabel();
            Label      dataSourceLabel = new Label();

            this.dataSourceCombo = new UnsettableComboBox();
            Label dataMemberLabel = new Label();

            this.dataMemberCombo = new UnsettableComboBox();
            Label dataKeyFieldLabel = new Label();

            this.dataKeyFieldCombo = new UnsettableComboBox();
            this.columnInfoLabel   = new Label();
            GroupLabel headerFooterGroup = new GroupLabel();

            this.showHeaderCheck = new CheckBox();
            this.showFooterCheck = new CheckBox();
            GroupLabel behaviorGroup = new GroupLabel();

            this.allowSortingCheck = new CheckBox();

            dataGroup.SetBounds(4, 4, 431, 16);
            dataGroup.Text     = SR.GetString(SR.DGGen_DataGroup);
            dataGroup.TabIndex = 0;
            dataGroup.TabStop  = false;

            dataSourceLabel.SetBounds(12, 24, 170, 16);
            dataSourceLabel.Text     = SR.GetString(SR.DGGen_DataSource);
            dataSourceLabel.TabStop  = false;
            dataSourceLabel.TabIndex = 1;

            dataSourceCombo.SetBounds(12, 40, 140, 64);
            dataSourceCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataSourceCombo.Sorted                = true;
            dataSourceCombo.TabIndex              = 2;
            dataSourceCombo.NotSetText            = SR.GetString(SR.DGGen_DSUnbound);
            dataSourceCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            dataMemberLabel.SetBounds(184, 24, 170, 16);
            dataMemberLabel.Text     = SR.GetString(SR.DGGen_DataMember);
            dataMemberLabel.TabStop  = false;
            dataMemberLabel.TabIndex = 3;

            dataMemberCombo.SetBounds(184, 40, 140, 21);
            dataMemberCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataMemberCombo.Sorted                = true;
            dataMemberCombo.TabIndex              = 4;
            dataMemberCombo.NotSetText            = SR.GetString(SR.DGGen_DMNone);
            dataMemberCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            dataKeyFieldLabel.SetBounds(12, 66, 170, 16);
            dataKeyFieldLabel.Text     = SR.GetString(SR.DGGen_DataKey);
            dataKeyFieldLabel.TabStop  = false;
            dataKeyFieldLabel.TabIndex = 5;

            dataKeyFieldCombo.SetBounds(12, 82, 140, 64);
            dataKeyFieldCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataKeyFieldCombo.Sorted                = true;
            dataKeyFieldCombo.TabIndex              = 6;
            dataKeyFieldCombo.NotSetText            = SR.GetString(SR.DGGen_DKNone);
            dataKeyFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataKeyField);

            columnInfoLabel.SetBounds(8, 112, 420, 48);
            columnInfoLabel.TabStop  = false;
            columnInfoLabel.TabIndex = 7;

            headerFooterGroup.SetBounds(4, 162, 431, 16);
            headerFooterGroup.Text     = SR.GetString(SR.DGGen_HeaderFooterGroup);
            headerFooterGroup.TabIndex = 8;
            headerFooterGroup.TabStop  = false;

            showHeaderCheck.SetBounds(12, 182, 160, 16);
            showHeaderCheck.TabIndex        = 9;
            showHeaderCheck.Text            = SR.GetString(SR.DGGen_ShowHeader);
            showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showHeaderCheck.FlatStyle       = FlatStyle.System;
            showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);

            showFooterCheck.SetBounds(12, 202, 160, 16);
            showFooterCheck.TabIndex        = 10;
            showFooterCheck.Text            = SR.GetString(SR.DGGen_ShowFooter);
            showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showFooterCheck.FlatStyle       = FlatStyle.System;
            showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);

            behaviorGroup.SetBounds(4, 228, 431, 16);
            behaviorGroup.Text     = SR.GetString(SR.DGGen_BehaviorGroup);
            behaviorGroup.TabIndex = 11;
            behaviorGroup.TabStop  = false;

            allowSortingCheck.SetBounds(12, 246, 160, 16);
            allowSortingCheck.Text            = SR.GetString(SR.DGGen_AllowSorting);
            allowSortingCheck.TabIndex        = 12;
            allowSortingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowSortingCheck.FlatStyle       = FlatStyle.System;
            allowSortingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowSorting);

            this.Text = SR.GetString(SR.DGGen_Text);
            this.Size = new Size(464, 272);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataGridGeneralPage.ico");

            Controls.Clear();
            Controls.AddRange(new Control[] {
                allowSortingCheck,
                behaviorGroup,
                showFooterCheck,
                showHeaderCheck,
                headerFooterGroup,
                columnInfoLabel,
                dataKeyFieldCombo,
                dataKeyFieldLabel,
                dataMemberCombo,
                dataMemberLabel,
                dataSourceCombo,
                dataSourceLabel,
                dataGroup
            });
        }
Esempio n. 8
0
        private void InitializeComponent()
        {
            _btnOK     = new Button();
            _btnCancel = new Button();
            _btnHelp   = new Button();
            _btnUp     = new Button();
            _btnDown   = new Button();
            _btnAdd    = new Button();
            _btnRemove = new Button();

            _txtType           = new TextBox();
            _tvDefinedStyles   = new TreeView();
            _lvAvailableStyles = new ListView();
            _samplePreview     = new MSHTMLHost();
            _propertyBrowser   = new PropertyGrid();
            _cntxtMenuItem     = new MenuItem();
            _cntxtMenu         = new ContextMenu();

            GroupLabel grplblStyleList = new GroupLabel();

            grplblStyleList.SetBounds(6, 5, 432, 16);
            grplblStyleList.Text     = SR.GetString(SR.StylesEditorDialog_StyleListGroupLabel);
            grplblStyleList.TabStop  = false;
            grplblStyleList.TabIndex = 0;

            Label lblAvailableStyles = new Label();

            lblAvailableStyles.SetBounds(14, 25, 180, 16);
            lblAvailableStyles.Text     = SR.GetString(SR.StylesEditorDialog_AvailableStylesCaption);
            lblAvailableStyles.TabStop  = false;
            lblAvailableStyles.TabIndex = 1;

            ColumnHeader chStyleType      = new System.Windows.Forms.ColumnHeader();
            ColumnHeader chStyleNamespace = new System.Windows.Forms.ColumnHeader();

            chStyleType.Width          = 16;
            chStyleType.TextAlign      = System.Windows.Forms.HorizontalAlignment.Left;
            chStyleNamespace.Width     = 16;
            chStyleNamespace.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;

            _lvAvailableStyles.SetBounds(14, 41, 180, 95);
            _lvAvailableStyles.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.None;
            _lvAvailableStyles.MultiSelect   = false;
            _lvAvailableStyles.HideSelection = false;
            _lvAvailableStyles.FullRowSelect = true;
            _lvAvailableStyles.View          = System.Windows.Forms.View.Details;
            _lvAvailableStyles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2] {
                chStyleType, chStyleNamespace
            });
            _lvAvailableStyles.SelectedIndexChanged += new EventHandler(this.OnNewStyleTypeChanged);
            _lvAvailableStyles.DoubleClick          += new EventHandler(this.OnDoubleClick);
            _lvAvailableStyles.Sorting  = SortOrder.Ascending;
            _lvAvailableStyles.TabIndex = 2;
            _lvAvailableStyles.TabStop  = true;

            _btnAdd.SetBounds(198, 77, 32, 25);
            _btnAdd.Text     = SR.GetString(SR.StylesEditorDialog_AddBtnCation);
            _btnAdd.Click   += new EventHandler(this.OnClickAddButton);
            _btnAdd.TabIndex = 3;
            _btnAdd.TabStop  = true;

            Label lblDefinedStyles = new Label();

            lblDefinedStyles.SetBounds(234, 25, 166, 16);
            lblDefinedStyles.Text     = SR.GetString(SR.StylesEditorDialog_DefinedStylesCaption);
            lblDefinedStyles.TabStop  = false;
            lblDefinedStyles.TabIndex = 4;;

            _tvDefinedStyles.SetBounds(234, 41, 166, 95);
            _tvDefinedStyles.AfterSelect    += new TreeViewEventHandler(OnStylesSelected);
            _tvDefinedStyles.AfterLabelEdit += new NodeLabelEditEventHandler(OnAfterLabelEdit);
            _tvDefinedStyles.LabelEdit       = true;
            _tvDefinedStyles.ShowPlusMinus   = false;
            _tvDefinedStyles.HideSelection   = false;
            _tvDefinedStyles.Indent          = 15;
            _tvDefinedStyles.ShowRootLines   = false;
            _tvDefinedStyles.ShowLines       = false;
            _tvDefinedStyles.ContextMenu     = _cntxtMenu;
            _tvDefinedStyles.TabIndex        = 5;
            _tvDefinedStyles.TabStop         = true;
            _tvDefinedStyles.KeyDown        += new KeyEventHandler(OnKeyDown);
            _tvDefinedStyles.MouseUp        += new MouseEventHandler(OnListMouseUp);
            _tvDefinedStyles.MouseDown      += new MouseEventHandler(OnListMouseDown);

            _btnUp.SetBounds(404, 41, 28, 27);
            _btnUp.Click   += new EventHandler(this.OnClickUpButton);
            _btnUp.Image    = GenericUI.SortUpIcon;
            _btnUp.TabIndex = 6;
            _btnUp.TabStop  = true;

            _btnDown.SetBounds(404, 72, 28, 27);
            _btnDown.Click   += new EventHandler(this.OnClickDownButton);
            _btnDown.Image    = GenericUI.SortDownIcon;
            _btnDown.TabIndex = 7;
            _btnDown.TabStop  = true;

            _btnRemove.SetBounds(404, 109, 28, 27);
            _btnRemove.Click   += new EventHandler(this.OnClickRemoveButton);
            _btnRemove.Image    = GenericUI.DeleteIcon;
            _btnRemove.TabIndex = 8;
            _btnRemove.TabStop  = true;

            GroupLabel grplblStyleProperties = new GroupLabel();

            grplblStyleProperties.SetBounds(6, 145, 432, 16);
            grplblStyleProperties.Text     = SR.GetString(SR.StylesEditorDialog_StylePropertiesGroupLabel);
            grplblStyleProperties.TabStop  = false;
            grplblStyleProperties.TabIndex = 9;

            Label lblType = new Label();

            lblType.SetBounds(14, 165, 180, 16);
            lblType.Text     = SR.GetString(SR.StylesEditorDialog_TypeCaption);
            lblType.TabIndex = 10;
            lblType.TabStop  = false;

            _txtType.SetBounds(14, 181, 180, 16);
            _txtType.ReadOnly = true;
            _txtType.TabIndex = 11;
            _txtType.TabStop  = true;

            Label lblSample = new Label();

            lblSample.SetBounds(14, 213, 180, 16);
            lblSample.Text     = SR.GetString(SR.StylesEditorDialog_SampleCaption);
            lblSample.TabStop  = false;
            lblSample.TabIndex = 12;

            _samplePreview.SetBounds(14, 229, 180, 76);
            _samplePreview.TabStop  = false;
            _samplePreview.TabIndex = 13;

            Label lblProperties = new Label();

            lblProperties.SetBounds(234, 165, 198, 16);
            lblProperties.Text     = SR.GetString(SR.StylesEditorDialog_PropertiesCaption);
            lblProperties.TabIndex = 14;
            lblProperties.TabStop  = false;

            _propertyBrowser.SetBounds(234, 181, 198, 178);
            _propertyBrowser.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
            _propertyBrowser.ToolbarVisible        = false;
            _propertyBrowser.HelpVisible           = false;
            _propertyBrowser.TabIndex              = 15;
            _propertyBrowser.TabStop               = true;
            _propertyBrowser.PropertySort          = PropertySort.Alphabetical;
            _propertyBrowser.PropertyValueChanged += new PropertyValueChangedEventHandler(this.OnPropertyValueChanged);

            _btnOK.DialogResult = DialogResult.OK;
            _btnOK.Location     = new System.Drawing.Point(201, 370);
            _btnOK.Size         = new System.Drawing.Size(75, 23);
            _btnOK.TabIndex     = 16;
            _btnOK.Text         = SR.GetString(SR.GenericDialog_OKBtnCaption);
            _btnOK.Click       += new EventHandler(this.OnClickOKButton);

            _btnCancel.DialogResult = DialogResult.Cancel;
            _btnCancel.Location     = new System.Drawing.Point(282, 370);
            _btnCancel.Size         = new System.Drawing.Size(75, 23);
            _btnCancel.TabIndex     = 17;
            _btnCancel.Text         = SR.GetString(SR.GenericDialog_CancelBtnCaption);

            _btnHelp.Click   += new EventHandler(this.OnClickHelpButton);
            _btnHelp.Location = new System.Drawing.Point(363, 370);
            _btnHelp.Size     = new System.Drawing.Size(75, 23);
            _btnHelp.TabIndex = 18;
            _btnHelp.Text     = SR.GetString(SR.GenericDialog_HelpBtnCaption);

            _cntxtMenuItem.Text = SR.GetString(SR.EditableTreeList_Rename);
            _cntxtMenu.MenuItems.Add(_cntxtMenuItem);
            _cntxtMenu.Popup     += new EventHandler(OnPopup);
            _cntxtMenuItem.Click += new EventHandler(OnContextMenuItemClick);

            GenericUI.InitDialog(this, _styleSheet.Site);

            this.Text           = _styleSheet.ID + " - " + SR.GetString(SR.StylesEditorDialog_Title);
            this.ClientSize     = new Size(444, 401);
            this.AcceptButton   = _btnOK;
            this.CancelButton   = _btnCancel;
            this.Activated     += new System.EventHandler(StylesEditorDialog_Activated);
            this.HelpRequested += new HelpEventHandler(this.OnHelpRequested);
            this.Controls.AddRange(new Control[]
            {
                grplblStyleList,
                lblAvailableStyles,
                _lvAvailableStyles,
                _btnAdd,
                lblDefinedStyles,
                _tvDefinedStyles,
                _btnUp,
                _btnDown,
                _btnRemove,
                grplblStyleProperties,
                lblType,
                _txtType,
                lblSample,
                _samplePreview,
                lblProperties,
                _propertyBrowser,
                _btnOK,
                _btnCancel,
                _btnHelp
            });
        }
Esempio n. 9
0
        private void InitForm()
        {
            GroupLabel grplblAppearance = new GroupLabel();

            grplblAppearance.SetBounds(4, 4, 392, 16);
            grplblAppearance.Text     = SR.GetString(SR.ObjectListGeneralPage_AppearanceGroupLabel);
            grplblAppearance.TabIndex = 2;
            grplblAppearance.TabStop  = false;

            Label lblBackCommandText = new Label();

            lblBackCommandText.SetBounds(12, 24, 174, 16);
            lblBackCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_BackCommandTextCaption);
            lblBackCommandText.TabStop  = false;
            lblBackCommandText.TabIndex = 3;

            _txtBackCommandText = new TextBox();
            _txtBackCommandText.SetBounds(12, 40, 154, 20);
            _txtBackCommandText.TabIndex     = 4;
            _txtBackCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblDetailsCommandText = new Label();

            lblDetailsCommandText.SetBounds(206, 24, 174, 16);
            lblDetailsCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_DetailsCommandTextCaption);
            lblDetailsCommandText.TabStop  = false;
            lblDetailsCommandText.TabIndex = 5;

            _txtDetailsCommandText = new TextBox();
            _txtDetailsCommandText.SetBounds(206, 40, 154, 20);
            _txtDetailsCommandText.TabIndex     = 6;
            _txtDetailsCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblMoreText = new Label();

            lblMoreText.SetBounds(12, 67, 174, 16);
            lblMoreText.Text     = SR.GetString(SR.ObjectListGeneralPage_MoreTextCaption);
            lblMoreText.TabStop  = false;
            lblMoreText.TabIndex = 7;

            _txtMoreText = new TextBox();
            _txtMoreText.SetBounds(12, 83, 154, 20);
            _txtMoreText.TabIndex     = 8;
            _txtMoreText.TextChanged += new EventHandler(this.OnSetPageDirty);

            GroupLabel pagingGroup    = new GroupLabel();
            Label      itemCountLabel = new Label();

            _txtItemCount = new TextBox();

            Label itemsPerPageLabel = new Label();

            _txtItemsPerPage = new TextBox();

            pagingGroup.SetBounds(4, 118, 392, 16);
            pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
            pagingGroup.TabIndex = 9;
            pagingGroup.TabStop  = false;

            itemCountLabel.SetBounds(12, 138, 174, 16);
            itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
            itemCountLabel.TabStop  = false;
            itemCountLabel.TabIndex = 10;

            _txtItemCount.SetBounds(12, 154, 154, 20);
            _txtItemCount.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemCount.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemCount.TabIndex     = 11;

            itemsPerPageLabel.SetBounds(206, 138, 174, 16);
            itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
            itemsPerPageLabel.TabStop  = false;
            itemsPerPageLabel.TabIndex = 12;

            _txtItemsPerPage.SetBounds(206, 154, 154, 20);
            _txtItemsPerPage.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemsPerPage.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemsPerPage.TabIndex     = 13;

            this.Text = SR.GetString(SR.ObjectListGeneralPage_Title);
            this.Size = new Size(402, 300);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                grplblAppearance,
                lblBackCommandText,
                _txtBackCommandText,
                lblDetailsCommandText,
                _txtDetailsCommandText,
                lblMoreText,
                _txtMoreText,
                pagingGroup,
                itemCountLabel,
                _txtItemCount,
                itemsPerPageLabel,
                _txtItemsPerPage
            });
        }
        protected override void InitForm()
        {
            Debug.Assert(GetBaseControl() != null);
            _isBaseControlList = (GetBaseControl() is List);
            this._listDesigner = (IListDesigner)GetBaseDesigner();

            Y = (_isBaseControlList ? 52 : 24);

            base.InitForm();

            this.Text = SR.GetString(SR.ListItemsPage_Title);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Items.ico"
                );
            this.Size = new Size(382, 220);

            if (_isBaseControlList)
            {
                _itemsAsLinksCheckBox = new CheckBox();
                _itemsAsLinksCheckBox.SetBounds(4, 4, 370, 16);
                _itemsAsLinksCheckBox.Text            = SR.GetString(SR.ListItemsPage_ItemsAsLinksCaption);
                _itemsAsLinksCheckBox.FlatStyle       = FlatStyle.System;
                _itemsAsLinksCheckBox.CheckedChanged += new EventHandler(this.OnSetPageDirty);
                _itemsAsLinksCheckBox.TabIndex        = 0;
            }

            GroupLabel grplblItemList = new GroupLabel();

            grplblItemList.SetBounds(4, _isBaseControlList ? 32 : 4, 372, LabelHeight);
            grplblItemList.Text     = SR.GetString(SR.ListItemsPage_ItemListGroupLabel);
            grplblItemList.TabIndex = 1;
            grplblItemList.TabStop  = false;

            TreeList.TabIndex = 2;

            Label lblValue = new Label();

            lblValue.SetBounds(X, Y, 134, LabelHeight);
            lblValue.Text     = SR.GetString(SR.ListItemsPage_ItemValueCaption);
            lblValue.TabStop  = false;
            lblValue.TabIndex = Index;

            Y        += LabelHeight;
            _txtValue = new TextBox();
            _txtValue.SetBounds(X, Y, 134, CmbHeight);
            _txtValue.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtValue.TabIndex     = Index + 1;

            this.Controls.AddRange(new Control[]
            {
                grplblItemList,
                lblValue,
                _txtValue
            });

            if (_isBaseControlList)
            {
                this.Controls.Add(_itemsAsLinksCheckBox);
            }
            else
            {
                Y           += CellSpace;
                _ckbSelected = new CheckBox();
                _ckbSelected.SetBounds(X, Y, 134, LabelHeight);
                _ckbSelected.FlatStyle       = System.Windows.Forms.FlatStyle.System;
                _ckbSelected.Text            = SR.GetString(SR.ListItemsPage_ItemSelectedCaption);
                _ckbSelected.CheckedChanged += new EventHandler(this.OnPropertyChanged);
                _ckbSelected.TabIndex        = Index + 2;
                this.Controls.Add(_ckbSelected);
            }
        }
Esempio n. 11
0
        ///////////////////////////////////////////////////////////////////////////
        // StyleBuilderPage Overrides

        /// <include file='doc\OtherStylePage.uex' path='docs/doc[@for="OtherStylePage.CreateUI"]/*' />
        /// <devdoc>
        ///     Creates the UI elements within the page.
        /// </devdoc>
        protected override void CreateUI()
        {
            Label     effectsLabel  = new GroupLabel();
            Label     filterLabel   = new Label();
            Label     uiLabel       = new GroupLabel();
            Label     cursorLabel   = new Label();
            Label     behaviorLabel = new GroupLabel();
            Label     urlLabel      = new Label();
            Label     tablesLabel   = new GroupLabel();
            Label     bordersLabel  = new Label();
            Label     layoutLabel   = new Label();
            ImageList cursorImages  = new ImageList();

            cursorImages.ImageSize = new Size(34, 34);
            ImageList bordersImages = new ImageList();

            bordersImages.ImageSize = new Size(34, 34);

            filterEdit      = new TextBox();
            cursorPicture   = new PictureBoxEx();
            cursorCombo     = new UnsettableComboBox();
            behaviorEdit    = new TextBox();
            urlPickerButton = new Button();
            bordersPicture  = new PictureBoxEx();
            bordersCombo    = new UnsettableComboBox();
            layoutCombo     = new UnsettableComboBox();

            uiLabel.Location = new Point(4, 4);
            uiLabel.Size     = new Size(400, 16);
            uiLabel.TabIndex = 0;
            uiLabel.TabStop  = false;
            uiLabel.Text     = SR.GetString(SR.OtherSP_UILabel);

            cursorImages.Images.AddStrip(new Bitmap(typeof(OtherStylePage), "PropCursor.bmp"));
            cursorPicture.Location = new Point(8, 25);
            cursorPicture.Size     = new Size(36, 36);
            cursorPicture.TabIndex = 1;
            cursorPicture.TabStop  = false;
            cursorPicture.Images   = cursorImages;

            cursorLabel.Location = new Point(48, 24);
            cursorLabel.Size     = new Size(160, 16);
            cursorLabel.TabIndex = 2;
            cursorLabel.TabStop  = false;
            cursorLabel.Text     = SR.GetString(SR.OtherSP_CursorLabel);

            cursorCombo.Location      = new Point(48, 40);
            cursorCombo.Size          = new Size(224, 21);
            cursorCombo.TabIndex      = 3;
            cursorCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            cursorCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.OtherSP_CursorCombo_1),
                SR.GetString(SR.OtherSP_CursorCombo_2),
                SR.GetString(SR.OtherSP_CursorCombo_3),
                SR.GetString(SR.OtherSP_CursorCombo_4),
                SR.GetString(SR.OtherSP_CursorCombo_5),
                SR.GetString(SR.OtherSP_CursorCombo_6),
                SR.GetString(SR.OtherSP_CursorCombo_7),
                SR.GetString(SR.OtherSP_CursorCombo_8),
                SR.GetString(SR.OtherSP_CursorCombo_9),
                SR.GetString(SR.OtherSP_CursorCombo_10),
                SR.GetString(SR.OtherSP_CursorCombo_11),
                SR.GetString(SR.OtherSP_CursorCombo_12),
                SR.GetString(SR.OtherSP_CursorCombo_13),
                SR.GetString(SR.OtherSP_CursorCombo_14),
                SR.GetString(SR.OtherSP_CursorCombo_15),
                SR.GetString(SR.OtherSP_CursorCombo_16)
            });
            cursorCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedCursor);

            tablesLabel.Location = new Point(4, 74);
            tablesLabel.Size     = new Size(400, 16);
            tablesLabel.TabIndex = 4;
            tablesLabel.TabStop  = false;
            tablesLabel.Text     = SR.GetString(SR.OtherSP_TablesLabel);

            bordersImages.Images.AddStrip(new Bitmap(typeof(OtherStylePage), "PropTableBorders.bmp"));
            bordersPicture.Location = new Point(8, 95);
            bordersPicture.Size     = new Size(36, 36);
            bordersPicture.TabIndex = 5;
            bordersPicture.TabStop  = false;
            bordersPicture.Images   = bordersImages;

            bordersLabel.Location = new Point(48, 94);
            bordersLabel.Size     = new Size(160, 16);
            bordersLabel.TabIndex = 6;
            bordersLabel.TabStop  = false;
            bordersLabel.Text     = SR.GetString(SR.OtherSP_BordersLabel);

            bordersCombo.Location      = new Point(48, 110);
            bordersCombo.Size          = new Size(174, 21);
            bordersCombo.TabIndex      = 7;
            bordersCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            bordersCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.OtherSP_BordersCombo_1),
                SR.GetString(SR.OtherSP_BordersCombo_2)
            });
            bordersCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedBorders);

            layoutLabel.Location = new Point(234, 94);
            layoutLabel.Size     = new Size(160, 16);
            layoutLabel.TabIndex = 8;
            layoutLabel.TabStop  = false;
            layoutLabel.Text     = SR.GetString(SR.OtherSP_LayoutLabel);

            layoutCombo.Location      = new Point(234, 110);
            layoutCombo.Size          = new Size(164, 21);
            layoutCombo.TabIndex      = 9;
            layoutCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            layoutCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.OtherSP_LayoutCombo_1),
                SR.GetString(SR.OtherSP_LayoutCombo_2)
            });
            layoutCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedLayout);

            effectsLabel.Location = new Point(4, 144);
            effectsLabel.Size     = new Size(400, 16);
            effectsLabel.TabIndex = 10;
            effectsLabel.TabStop  = false;
            effectsLabel.Text     = SR.GetString(SR.OtherSP_VisEffectsLabel);

            filterLabel.Location = new Point(8, 168);
            filterLabel.Size     = new Size(76, 16);
            filterLabel.TabIndex = 11;
            filterLabel.TabStop  = false;
            filterLabel.Text     = SR.GetString(SR.OtherSP_FilterLabel);

            filterEdit.Location     = new Point(88, 164);
            filterEdit.Size         = new Size(306, 20);
            filterEdit.TabIndex     = 12;
            filterEdit.Text         = "";
            filterEdit.TextChanged += new EventHandler(this.OnChangedFilter);

            behaviorLabel.Location = new Point(4, 196);
            behaviorLabel.Size     = new Size(400, 16);
            behaviorLabel.TabIndex = 13;
            behaviorLabel.TabStop  = false;
            behaviorLabel.Text     = SR.GetString(SR.OtherSP_BehaviorLabel);

            urlLabel.Location = new Point(8, 218);
            urlLabel.Size     = new Size(76, 16);
            urlLabel.TabIndex = 14;
            urlLabel.TabStop  = false;
            urlLabel.Text     = SR.GetString(SR.OtherSP_URLLabel);

            behaviorEdit.Location     = new Point(88, 214);
            behaviorEdit.Size         = new Size(278, 20);
            behaviorEdit.TabIndex     = 15;
            behaviorEdit.Text         = "";
            behaviorEdit.TextChanged += new EventHandler(this.OnChangedBehavior);

            urlPickerButton.Location  = new Point(370, 213);
            urlPickerButton.Size      = new Size(24, 22);
            urlPickerButton.TabIndex  = 16;
            urlPickerButton.Text      = "...";
            urlPickerButton.FlatStyle = FlatStyle.System;
            urlPickerButton.Click    += new EventHandler(this.OnClickedBehaviorUrlPicker);

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                behaviorLabel,
                urlLabel,
                behaviorEdit,
                urlPickerButton,
                effectsLabel,
                filterLabel,
                filterEdit,
                tablesLabel,
                layoutLabel,
                layoutCombo,
                bordersPicture,
                bordersLabel,
                bordersCombo,
                uiLabel,
                cursorPicture,
                cursorLabel,
                cursorCombo
            });
        }
        ///////////////////////////////////////////////////////////////////////////
        // IStyleBuilderPage Implementation and StyleBuilderPage Overrides

        /// <include file='doc\LayoutStylePage.uex' path='docs/doc[@for="LayoutStylePage.CreateUI"]/*' />
        /// <devdoc>
        ///     Creates the UI elements within the page.
        /// </devdoc>
        protected override void CreateUI()
        {
            GroupBox clippingGroup        = new GroupBox();
            Label    flowControlLabel     = new GroupLabel();
            Label    visibilityLabel      = new Label();
            Label    displayLabel         = new Label();
            Label    floatLabel           = new Label();
            Label    clearLabel           = new Label();
            Label    contentLabel         = new GroupLabel();
            Label    overflowLabel        = new Label();
            Label    clipTopLabel         = new Label();
            Label    clipLeftLabel        = new Label();
            Label    clipBottomLabel      = new Label();
            Label    clipRightLabel       = new Label();
            Label    pageBreakLabel       = new GroupLabel();
            Label    pageBreakBeforeLabel = new Label();
            Label    pageBreakAfterLabel  = new Label();

            ImageList visibilityImages = new ImageList();

            visibilityImages.ImageSize = new Size(34, 34);
            ImageList displayImages = new ImageList();

            displayImages.ImageSize = new Size(34, 34);
            ImageList floatImages = new ImageList();

            floatImages.ImageSize = new Size(34, 34);
            ImageList clearImages = new ImageList();

            clearImages.ImageSize = new Size(34, 34);

            visibilityCombo      = new UnsettableComboBox();
            visibilityPicture    = new PictureBoxEx();
            displayCombo         = new UnsettableComboBox();
            displayPicture       = new PictureBoxEx();
            floatCombo           = new UnsettableComboBox();
            floatPicture         = new PictureBoxEx();
            clearCombo           = new UnsettableComboBox();
            clearPicture         = new PictureBoxEx();
            overflowCombo        = new UnsettableComboBox();
            clipTopUnit          = new UnitControl();
            clipLeftUnit         = new UnitControl();
            clipBottomUnit       = new UnitControl();
            clipRightUnit        = new UnitControl();
            pageBreakBeforeCombo = new UnsettableComboBox();
            pageBreakAfterCombo  = new UnsettableComboBox();

            flowControlLabel.Location = new Point(4, 4);
            flowControlLabel.Size     = new Size(400, 16);
            flowControlLabel.TabIndex = 0;
            flowControlLabel.TabStop  = false;
            flowControlLabel.Text     = SR.GetString(SR.LytSP_FlowControlLabel);

            visibilityImages.Images.AddStrip(new Bitmap(typeof(LayoutStylePage), "PropVisibility.bmp"));
            visibilityPicture.Location = new Point(8, 25);
            visibilityPicture.Size     = new Size(36, 36);
            visibilityPicture.TabIndex = 1;
            visibilityPicture.TabStop  = false;
            visibilityPicture.Images   = visibilityImages;

            visibilityLabel.Location = new Point(48, 24);
            visibilityLabel.Size     = new Size(132, 16);
            visibilityLabel.TabIndex = 2;
            visibilityLabel.TabStop  = false;
            visibilityLabel.Text     = SR.GetString(SR.LytSP_VisibilityLabel);

            visibilityCombo.Location      = new Point(48, 40);
            visibilityCombo.Size          = new Size(132, 21);
            visibilityCombo.TabIndex      = 3;
            visibilityCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            visibilityCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_VisibilityCombo_1),
                SR.GetString(SR.LytSP_VisibilityCombo_2)
            });
            visibilityCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedVisibility);

            floatImages.Images.AddStrip(new Bitmap(typeof(LayoutStylePage), "PropFloat.bmp"));
            floatPicture.Location = new Point(186, 25);
            floatPicture.Size     = new Size(36, 36);
            floatPicture.TabIndex = 4;
            floatPicture.TabStop  = false;
            floatPicture.Images   = floatImages;

            floatLabel.Location = new Point(226, 24);
            floatLabel.Size     = new Size(180, 16);
            floatLabel.TabIndex = 5;
            floatLabel.TabStop  = false;
            floatLabel.Text     = SR.GetString(SR.LytSP_FloatLabel);

            floatCombo.Location      = new Point(226, 40);
            floatCombo.Size          = new Size(174, 21);
            floatCombo.TabIndex      = 6;
            floatCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            floatCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_FloatCombo_1),
                SR.GetString(SR.LytSP_FloatCombo_2),
                SR.GetString(SR.LytSP_FloatCombo_3)
            });
            floatCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedFloat);

            displayImages.Images.AddStrip(new Bitmap(typeof(LayoutStylePage), "PropDisplay.bmp"));
            displayPicture.Location = new Point(8, 69);
            displayPicture.Size     = new Size(36, 36);
            displayPicture.TabIndex = 7;
            displayPicture.TabStop  = false;
            displayPicture.Images   = displayImages;

            displayLabel.Location = new Point(48, 68);
            displayLabel.Size     = new Size(132, 16);
            displayLabel.TabIndex = 8;
            displayLabel.TabStop  = false;
            displayLabel.Text     = SR.GetString(SR.LytSP_DisplayLabel);

            displayCombo.Location      = new Point(48, 84);
            displayCombo.Size          = new Size(132, 21);
            displayCombo.TabIndex      = 9;
            displayCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            displayCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_DisplayCombo_1),
                SR.GetString(SR.LytSP_DisplayCombo_2),
                SR.GetString(SR.LytSP_DisplayCombo_3)
            });
            displayCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDisplay);

            clearImages.Images.AddStrip(new Bitmap(typeof(LayoutStylePage), "PropClear.bmp"));
            clearPicture.Location = new Point(186, 69);
            clearPicture.Size     = new Size(36, 36);
            clearPicture.TabIndex = 10;
            clearPicture.TabStop  = false;
            clearPicture.Images   = clearImages;

            clearLabel.Location = new Point(226, 68);
            clearLabel.Size     = new Size(180, 16);
            clearLabel.TabIndex = 11;
            clearLabel.TabStop  = false;
            clearLabel.Text     = SR.GetString(SR.LytSP_ClearLabel);

            clearCombo.Location      = new Point(226, 84);
            clearCombo.Size          = new Size(174, 21);
            clearCombo.TabIndex      = 12;
            clearCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            clearCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_ClearCombo_1),
                SR.GetString(SR.LytSP_ClearCombo_2),
                SR.GetString(SR.LytSP_ClearCombo_3),
                SR.GetString(SR.LytSP_ClearCombo_4)
            });
            clearCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedClear);

            contentLabel.Location = new Point(4, 114);
            contentLabel.Size     = new Size(400, 16);
            contentLabel.TabIndex = 13;
            contentLabel.TabStop  = false;
            contentLabel.Text     = SR.GetString(SR.LytSP_ContentLabel);

            overflowLabel.Location = new Point(8, 138);
            overflowLabel.Size     = new Size(108, 16);
            overflowLabel.TabIndex = 14;
            overflowLabel.TabStop  = false;
            overflowLabel.Text     = SR.GetString(SR.LytSP_OverflowLabel);

            overflowCombo.Location      = new Point(116, 134);
            overflowCombo.Size          = new Size(252, 21);
            overflowCombo.TabIndex      = 15;
            overflowCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            overflowCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_OverflowCombo_1),
                SR.GetString(SR.LytSP_OverflowCombo_2),
                SR.GetString(SR.LytSP_OverflowCombo_3),
                SR.GetString(SR.LytSP_OverflowCombo_4)
            });
            overflowCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedOverflow);

            clippingGroup.Location  = new Point(8, 162);
            clippingGroup.Size      = new Size(360, 72);
            clippingGroup.TabIndex  = 16;
            clippingGroup.TabStop   = false;
            clippingGroup.FlatStyle = FlatStyle.System;
            clippingGroup.Text      = SR.GetString(SR.LytSP_ClippingGroup);

            clipTopLabel.Location = new Point(12, 20);
            clipTopLabel.Size     = new Size(58, 16);
            clipTopLabel.TabIndex = 0;
            clipTopLabel.TabStop  = false;
            clipTopLabel.Text     = SR.GetString(SR.LytSP_ClipTopLabel);

            clipTopUnit.Location    = new Point(70, 16);
            clipTopUnit.Size        = new Size(88, 21);
            clipTopUnit.TabIndex    = 1;
            clipTopUnit.DefaultUnit = UnitControl.UNIT_PX;
            clipTopUnit.MinValue    = -32768;
            clipTopUnit.MaxValue    = 32767;
            clipTopUnit.Changed    += new EventHandler(this.OnChangedClip);

            clipLeftLabel.Location = new Point(12, 44);
            clipLeftLabel.Size     = new Size(58, 16);
            clipLeftLabel.TabIndex = 4;
            clipLeftLabel.TabStop  = false;
            clipLeftLabel.Text     = SR.GetString(SR.LytSP_ClipLeftLabel);

            clipLeftUnit.Location    = new Point(70, 40);
            clipLeftUnit.Size        = new Size(88, 21);
            clipLeftUnit.TabIndex    = 5;
            clipLeftUnit.DefaultUnit = UnitControl.UNIT_PX;
            clipLeftUnit.MinValue    = -32768;
            clipLeftUnit.MaxValue    = 32767;
            clipLeftUnit.Changed    += new EventHandler(this.OnChangedClip);

            clipBottomLabel.Location = new Point(182, 20);
            clipBottomLabel.Size     = new Size(62, 16);
            clipBottomLabel.TabIndex = 2;
            clipBottomLabel.TabStop  = false;
            clipBottomLabel.Text     = SR.GetString(SR.LytSP_ClipBottomLabel);

            clipBottomUnit.Location    = new Point(248, 16);
            clipBottomUnit.Size        = new Size(88, 21);
            clipBottomUnit.TabIndex    = 3;
            clipBottomUnit.DefaultUnit = UnitControl.UNIT_PX;
            clipBottomUnit.MinValue    = -32768;
            clipBottomUnit.MaxValue    = 32767;
            clipBottomUnit.Changed    += new EventHandler(this.OnChangedClip);

            clipRightLabel.Location = new Point(182, 44);
            clipRightLabel.Size     = new Size(62, 16);
            clipRightLabel.TabIndex = 6;
            clipRightLabel.TabStop  = false;
            clipRightLabel.Text     = SR.GetString(SR.LytSP_ClipRightLabel);

            clipRightUnit.Location    = new Point(248, 40);
            clipRightUnit.Size        = new Size(88, 21);
            clipRightUnit.TabIndex    = 7;
            clipRightUnit.DefaultUnit = UnitControl.UNIT_PX;
            clipRightUnit.MinValue    = -32768;
            clipRightUnit.MaxValue    = 32767;
            clipRightUnit.Changed    += new EventHandler(this.OnChangedClip);

            pageBreakLabel.Location = new Point(4, 244);
            pageBreakLabel.Size     = new Size(400, 16);
            pageBreakLabel.TabIndex = 17;
            pageBreakLabel.TabStop  = false;
            pageBreakLabel.Text     = SR.GetString(SR.LytSP_PageBreakGroup);

            pageBreakBeforeLabel.Location = new Point(8, 268);
            pageBreakBeforeLabel.Size     = new Size(82, 16);
            pageBreakBeforeLabel.TabIndex = 18;
            pageBreakBeforeLabel.TabStop  = false;
            pageBreakBeforeLabel.Text     = SR.GetString(SR.LytSP_PgBrBeforeLabel);

            pageBreakBeforeCombo.Location      = new Point(90, 264);
            pageBreakBeforeCombo.Size          = new Size(180, 21);
            pageBreakBeforeCombo.TabIndex      = 19;
            pageBreakBeforeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            pageBreakBeforeCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_PgBrBeforeCombo_1),
                SR.GetString(SR.LytSP_PgBrBeforeCombo_2)
            });
            pageBreakBeforeCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedPageBreak);

            pageBreakAfterLabel.Location = new Point(8, 294);
            pageBreakAfterLabel.Size     = new Size(82, 16);
            pageBreakAfterLabel.TabIndex = 20;
            pageBreakAfterLabel.TabStop  = false;
            pageBreakAfterLabel.Text     = SR.GetString(SR.LytSP_PgBrAfterLabel);

            pageBreakAfterCombo.Location      = new Point(90, 290);
            pageBreakAfterCombo.Size          = new Size(180, 21);
            pageBreakAfterCombo.TabIndex      = 21;
            pageBreakAfterCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            pageBreakAfterCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LytSP_PgBrAfterCombo_1),
                SR.GetString(SR.LytSP_PgBrAfterCombo_2)
            });
            pageBreakAfterCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedPageBreak);

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                pageBreakLabel,
                pageBreakAfterLabel,
                pageBreakAfterCombo,
                pageBreakBeforeLabel,
                pageBreakBeforeCombo,
                clippingGroup,
                overflowLabel,
                overflowCombo,
                contentLabel,
                clearPicture,
                clearLabel,
                clearCombo,
                displayPicture,
                displayLabel,
                displayCombo,
                floatPicture,
                floatLabel,
                floatCombo,
                visibilityPicture,
                visibilityLabel,
                visibilityCombo,
                flowControlLabel
            });

            clippingGroup.Controls.Clear();
            clippingGroup.Controls.AddRange(new Control[] {
                clipRightLabel,
                clipRightUnit,
                clipBottomLabel,
                clipBottomUnit,
                clipLeftLabel,
                clipLeftUnit,
                clipTopLabel,
                clipTopUnit
            });
        }
        /// <include file='doc\DataGridPagingPage.uex' path='docs/doc[@for="DataGridPagingPage.InitForm"]/*' />
        /// <devdoc>
        ///    Creates the UI of the page.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel pagingGroup = new GroupLabel();

            this.allowPagingCheck       = new CheckBox();
            this.allowCustomPagingCheck = new CheckBox();
            Label pageSizeLabel = new Label();

            this.pageSizeEdit = new NumberEdit();
            Label      miscLabel       = new Label();
            GroupLabel navigationGroup = new GroupLabel();

            this.visibleCheck = new CheckBox();
            Label pagingPosLabel = new Label();

            this.posCombo = new ComboBox();
            Label pagingModeLabel = new Label();

            this.modeCombo = new ComboBox();
            Label nextPageLabel = new Label();

            this.nextPageTextEdit = new TextBox();
            Label prevPageLabel = new Label();

            this.prevPageTextEdit = new TextBox();
            Label pageButtonCountLabel = new Label();

            this.pageButtonCountEdit = new NumberEdit();

            pagingGroup.SetBounds(4, 4, 431, 16);
            pagingGroup.Text     = SR.GetString(SR.DGPg_PagingGroup);
            pagingGroup.TabStop  = false;
            pagingGroup.TabIndex = 0;

            allowPagingCheck.SetBounds(12, 24, 180, 16);
            allowPagingCheck.Text            = SR.GetString(SR.DGPg_AllowPaging);
            allowPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowPagingCheck.TabIndex        = 1;
            allowPagingCheck.FlatStyle       = FlatStyle.System;
            allowPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowPaging);

            allowCustomPagingCheck.SetBounds(220, 24, 180, 16);
            allowCustomPagingCheck.Text            = SR.GetString(SR.DGPg_AllowCustomPaging);
            allowCustomPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowCustomPagingCheck.TabIndex        = 2;
            allowCustomPagingCheck.FlatStyle       = FlatStyle.System;
            allowCustomPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowCustomPaging);

            pageSizeLabel.SetBounds(12, 50, 100, 14);
            pageSizeLabel.Text     = SR.GetString(SR.DGPg_PageSize);
            pageSizeLabel.TabStop  = false;
            pageSizeLabel.TabIndex = 3;

            pageSizeEdit.SetBounds(112, 46, 40, 24);
            pageSizeEdit.TabIndex      = 4;
            pageSizeEdit.AllowDecimal  = false;
            pageSizeEdit.AllowNegative = false;
            pageSizeEdit.TextChanged  += new EventHandler(this.OnTextChangedPageSize);

            miscLabel.SetBounds(158, 50, 80, 14);
            miscLabel.Text     = SR.GetString(SR.DGPg_Rows);
            miscLabel.TabStop  = false;
            miscLabel.TabIndex = 5;

            navigationGroup.SetBounds(4, 78, 431, 14);
            navigationGroup.Text     = SR.GetString(SR.DGPg_NavigationGroup);
            navigationGroup.TabStop  = false;
            navigationGroup.TabIndex = 6;

            visibleCheck.SetBounds(12, 100, 260, 16);
            visibleCheck.Text            = SR.GetString(SR.DGPg_Visible);
            visibleCheck.TextAlign       = ContentAlignment.MiddleLeft;
            visibleCheck.TabIndex        = 7;
            visibleCheck.FlatStyle       = FlatStyle.System;
            visibleCheck.CheckedChanged += new EventHandler(this.OnCheckChangedVisible);

            pagingPosLabel.SetBounds(12, 122, 150, 14);
            pagingPosLabel.Text     = SR.GetString(SR.DGPg_Position);
            pagingPosLabel.TabStop  = false;
            pagingPosLabel.TabIndex = 8;

            posCombo.SetBounds(12, 138, 144, 21);
            posCombo.TabIndex      = 9;
            posCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            posCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DGPg_Pos_Top),
                SR.GetString(SR.DGPg_Pos_Bottom),
                SR.GetString(SR.DGPg_Pos_TopBottom)
            });
            posCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);

            pagingModeLabel.SetBounds(12, 166, 150, 14);
            pagingModeLabel.Text     = SR.GetString(SR.DGPg_Mode);
            pagingModeLabel.TabStop  = false;
            pagingModeLabel.TabIndex = 10;

            modeCombo.SetBounds(12, 182, 144, 64);
            modeCombo.TabIndex      = 11;
            modeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            modeCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DGPg_Mode_Buttons),
                SR.GetString(SR.DGPg_Mode_Numbers)
            });
            modeCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);

            nextPageLabel.SetBounds(12, 210, 200, 14);
            nextPageLabel.Text     = SR.GetString(SR.DGPg_NextPage);
            nextPageLabel.TabStop  = false;
            nextPageLabel.TabIndex = 12;

            nextPageTextEdit.SetBounds(12, 226, 144, 24);
            nextPageTextEdit.TabIndex     = 13;
            nextPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);

            prevPageLabel.SetBounds(220, 210, 200, 14);
            prevPageLabel.Text     = SR.GetString(SR.DGPg_PrevPage);
            prevPageLabel.TabStop  = false;
            prevPageLabel.TabIndex = 14;

            prevPageTextEdit.SetBounds(220, 226, 140, 24);
            prevPageTextEdit.TabIndex     = 15;
            prevPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);

            pageButtonCountLabel.SetBounds(12, 254, 200, 14);
            pageButtonCountLabel.Text     = SR.GetString(SR.DGPg_ButtonCount);
            pageButtonCountLabel.TabStop  = false;
            pageButtonCountLabel.TabIndex = 16;

            pageButtonCountEdit.SetBounds(12, 270, 40, 24);
            pageButtonCountEdit.TabIndex      = 17;
            pageButtonCountEdit.AllowDecimal  = false;
            pageButtonCountEdit.AllowNegative = false;
            pageButtonCountEdit.TextChanged  += new EventHandler(this.OnPagerChanged);

            this.Text = SR.GetString(SR.DGPg_Text);
            this.Size = new Size(464, 300);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataGridPagingPage.ico");

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                pageButtonCountEdit,
                pageButtonCountLabel,
                prevPageTextEdit,
                prevPageLabel,
                nextPageTextEdit,
                nextPageLabel,
                modeCombo,
                pagingModeLabel,
                posCombo,
                pagingPosLabel,
                visibleCheck,
                navigationGroup,
                miscLabel,
                pageSizeEdit,
                pageSizeLabel,
                allowCustomPagingCheck,
                allowPagingCheck,
                pagingGroup
            });
        }
Esempio n. 14
0
        /// <include file='doc\ListsStylePage.uex' path='docs/doc[@for="ListsStylePage.CreateUI"]/*' />
        /// <devdoc>
        ///     Creates the UI elements within the page.
        /// </devdoc>
        protected override void CreateUI()
        {
            Label listTypeLabel = new Label();
            Label bulletsLabel  = new GroupLabel();
            Label positionLabel = new Label();
            Label styleLabel    = new Label();

            listTypeCombo     = new UnsettableComboBox();
            positionCombo     = new UnsettableComboBox();
            styleCombo        = new UnsettableComboBox();
            customBulletCheck = new CheckBox();
            customImageOption = new RadioButton();
            customNoneOption  = new RadioButton();
            customImageEdit   = new TextBox();
            customImagePicker = new Button();

            listTypeLabel.Location = new Point(4, 8);
            listTypeLabel.Size     = new Size(70, 16);
            listTypeLabel.TabIndex = 0;
            listTypeLabel.TabStop  = false;
            listTypeLabel.Text     = SR.GetString(SR.LstSP_ListTypeLabel);

            listTypeCombo.Location      = new Point(76, 4);
            listTypeCombo.Size          = new Size(144, 21);
            listTypeCombo.TabIndex      = 1;
            listTypeCombo.Text          = "";
            listTypeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            listTypeCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LstSP_ListTypeCombo_1),
                SR.GetString(SR.LstSP_ListTypeCombo_2)
            });
            listTypeCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedListType);

            bulletsLabel.Location = new Point(4, 36);
            bulletsLabel.Size     = new Size(400, 16);
            bulletsLabel.TabIndex = 2;
            bulletsLabel.TabStop  = false;
            bulletsLabel.Text     = SR.GetString(SR.LstSP_BulletsLabel);

            styleLabel.Location = new Point(8, 59);
            styleLabel.Size     = new Size(84, 16);
            styleLabel.TabIndex = 3;
            styleLabel.TabStop  = false;
            styleLabel.Text     = SR.GetString(SR.LstSP_StyleLabel);

            styleCombo.Location      = new Point(98, 55);
            styleCombo.Size          = new Size(200, 21);
            styleCombo.TabIndex      = 4;
            styleCombo.Text          = "";
            styleCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            styleCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LstSP_StyleCombo_1),
                SR.GetString(SR.LstSP_StyleCombo_2),
                SR.GetString(SR.LstSP_StyleCombo_3),
                SR.GetString(SR.LstSP_StyleCombo_4),
                SR.GetString(SR.LstSP_StyleCombo_5),
                SR.GetString(SR.LstSP_StyleCombo_6),
                SR.GetString(SR.LstSP_StyleCombo_7),
                SR.GetString(SR.LstSP_StyleCombo_8)
            });
            styleCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedStyle);

            positionLabel.Location = new Point(8, 84);
            positionLabel.Size     = new Size(84, 16);
            positionLabel.TabIndex = 5;
            positionLabel.TabStop  = false;
            positionLabel.Text     = SR.GetString(SR.LstSP_PositionLabel);

            positionCombo.Location      = new Point(98, 80);
            positionCombo.Size          = new Size(200, 21);
            positionCombo.TabIndex      = 6;
            positionCombo.Text          = "";
            positionCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            positionCombo.Items.AddRange(new object[]
            {
                SR.GetString(SR.LstSP_PositionCombo_1),
                SR.GetString(SR.LstSP_PositionCombo_2)
            });
            positionCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedPosition);

            customBulletCheck.Location        = new Point(8, 112);
            customBulletCheck.Size            = new Size(260, 20);
            customBulletCheck.TabIndex        = 7;
            customBulletCheck.Text            = SR.GetString(SR.LstSP_CustomBulletCheck);
            customBulletCheck.FlatStyle       = FlatStyle.System;
            customBulletCheck.CheckedChanged += new EventHandler(this.OnChangedCustomBullet);

            customImageOption.Location        = new Point(22, 136);
            customImageOption.Size            = new Size(84, 16);
            customImageOption.TabIndex        = 8;
            customImageOption.Text            = SR.GetString(SR.LstSP_CustomImageOption);
            customImageOption.FlatStyle       = FlatStyle.System;
            customImageOption.CheckedChanged += new EventHandler(this.OnChangedCustomBulletType);

            customNoneOption.Location        = new Point(22, 156);
            customNoneOption.Size            = new Size(84, 20);
            customNoneOption.TabIndex        = 9;
            customNoneOption.Text            = SR.GetString(SR.LstSP_CustomNoneOption);
            customNoneOption.FlatStyle       = FlatStyle.System;
            customNoneOption.CheckedChanged += new EventHandler(this.OnChangedCustomBulletType);

            customImageEdit.Location       = new Point(98, 134);
            customImageEdit.Size           = new Size(226, 20);
            customImageEdit.TabIndex       = 10;
            customImageEdit.Text           = "";
            customImageEdit.AccessibleName = SR.GetString(SR.LstSP_CustomImageOption);
            customImageEdit.TextChanged   += new EventHandler(this.OnChangedCustomBulletImage);
            customImageEdit.LostFocus     += new EventHandler(this.OnLostFocusCustomBulletImage);

            customImagePicker.Location  = new Point(328, 133);
            customImagePicker.Size      = new Size(24, 22);
            customImagePicker.TabIndex  = 11;
            customImagePicker.Text      = "...";
            customImagePicker.FlatStyle = FlatStyle.System;
            customImagePicker.Click    += new EventHandler(this.OnClickCustomBulletPicker);

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                bulletsLabel,
                customBulletCheck,
                customImageEdit,
                customImagePicker,
                customNoneOption,
                customImageOption,
                positionLabel,
                positionCombo,
                styleLabel,
                styleCombo,
                listTypeLabel,
                listTypeCombo
            });
        }
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
            this.cellPaddingEdit = new NumberEdit();
            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.cellSpacingEdit = new NumberEdit();
            GroupLabel label4 = new GroupLabel();

            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.gridLinesCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.borderColorCombo        = new ColorComboBox();
            this.borderColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
            this.borderWidthUnit = new UnitControl();
            label.SetBounds(4, 4, 300, 0x10);
            label.Text     = System.Design.SR.GetString("BDLBor_CellMarginsGroup");
            label.TabStop  = false;
            label.TabIndex = 0;
            label2.Text    = System.Design.SR.GetString("BDLBor_CellPadding");
            label2.SetBounds(12, 0x18, 120, 14);
            label2.TabStop  = false;
            label2.TabIndex = 1;
            this.cellPaddingEdit.SetBounds(12, 40, 70, 20);
            this.cellPaddingEdit.AllowDecimal  = false;
            this.cellPaddingEdit.AllowNegative = false;
            this.cellPaddingEdit.TabIndex      = 2;
            this.cellPaddingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);
            label3.Text = System.Design.SR.GetString("BDLBor_CellSpacing");
            label3.SetBounds(160, 0x18, 120, 14);
            label3.TabStop  = false;
            label3.TabIndex = 3;
            this.cellSpacingEdit.SetBounds(160, 40, 70, 20);
            this.cellSpacingEdit.AllowDecimal  = false;
            this.cellSpacingEdit.AllowNegative = false;
            this.cellSpacingEdit.TabIndex      = 4;
            this.cellSpacingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);
            label4.SetBounds(4, 70, 300, 0x10);
            label4.Text     = System.Design.SR.GetString("BDLBor_BorderLinesGroup");
            label4.TabStop  = false;
            label4.TabIndex = 5;
            label5.Text     = System.Design.SR.GetString("BDLBor_GridLines");
            label5.SetBounds(12, 90, 150, 14);
            label5.TabStop  = false;
            label5.TabIndex = 6;
            this.gridLinesCombo.SetBounds(12, 0x6a, 140, 0x15);
            this.gridLinesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.gridLinesCombo.Items.Clear();
            this.gridLinesCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLBor_GL_Horz"), System.Design.SR.GetString("BDLBor_GL_Vert"), System.Design.SR.GetString("BDLBor_GL_Both"), System.Design.SR.GetString("BDLBor_GL_None") });
            this.gridLinesCombo.TabIndex              = 7;
            this.gridLinesCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
            label6.Text = System.Design.SR.GetString("BDLBor_BorderColor");
            label6.SetBounds(12, 0x86, 150, 14);
            label6.TabStop  = false;
            label6.TabIndex = 8;
            this.borderColorCombo.SetBounds(12, 150, 140, 0x15);
            this.borderColorCombo.TabIndex              = 9;
            this.borderColorCombo.TextChanged          += new EventHandler(this.OnBordersChanged);
            this.borderColorCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
            this.borderColorPickerButton.SetBounds(0x9c, 0x95, 0x18, 0x16);
            this.borderColorPickerButton.Text                  = "...";
            this.borderColorPickerButton.TabIndex              = 10;
            this.borderColorPickerButton.FlatStyle             = FlatStyle.System;
            this.borderColorPickerButton.Click                += new EventHandler(this.OnClickColorPicker);
            this.borderColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLBor_ChooseColorButton");
            this.borderColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLBor_ChooseColorDesc");
            label7.Text = System.Design.SR.GetString("BDLBor_BorderWidth");
            label7.SetBounds(12, 0xb2, 150, 14);
            label7.TabStop  = false;
            label7.TabIndex = 11;
            this.borderWidthUnit.SetBounds(12, 0xc2, 0x66, 0x16);
            this.borderWidthUnit.AllowNegativeValues        = false;
            this.borderWidthUnit.AllowPercentValues         = false;
            this.borderWidthUnit.DefaultUnit                = 0;
            this.borderWidthUnit.TabIndex                   = 12;
            this.borderWidthUnit.Changed                   += new EventHandler(this.OnBordersChanged);
            this.borderWidthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLBor_BorderWidthValueDesc");
            this.borderWidthUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLBor_BorderWidthValueName");
            this.borderWidthUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLBor_BorderWidthUnitDesc");
            this.borderWidthUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLBor_BorderWidthUnitName");
            this.Text = System.Design.SR.GetString("BDLBor_Text");
            base.AccessibleDescription = System.Design.SR.GetString("BDLBor_Desc");
            base.Size = new Size(0x134, 0x9c);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "BordersPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.borderWidthUnit, label7, this.borderColorPickerButton, this.borderColorCombo, label6, this.gridLinesCombo, label5, label4, this.cellSpacingEdit, label3, this.cellPaddingEdit, label2, label });
        }
        private void InitializeComponent()
        {
            this._pnlHeader        = new HeaderPanel();
            this._lblHeader        = new HeaderLabel();
            this._glAttributes     = new GroupLabel();
            this._glType           = new GroupLabel();
            this._txtType          = new System.Windows.Forms.TextBox();
            this._pnlMain          = new System.Windows.Forms.Panel();
            this._filterList       = new EditableTreeList();
            this._rbCompare        = new System.Windows.Forms.RadioButton();
            this._lblCompare       = new System.Windows.Forms.Label();
            this._dialogButtons    = new DefaultDialogButtons();
            this._lblType          = new System.Windows.Forms.Label();
            this._txtMethod        = new System.Windows.Forms.TextBox();
            this._txtArgument      = new System.Windows.Forms.TextBox();
            this._pnlRight         = new System.Windows.Forms.Panel();
            this._lblMethod        = new System.Windows.Forms.Label();
            this._rbDelegate       = new System.Windows.Forms.RadioButton();
            this._pnlCompare       = new System.Windows.Forms.Panel();
            this._cbCompare        = new System.Windows.Forms.ComboBox();
            this._lblArgument      = new System.Windows.Forms.Label();
            this._pnlDelegate      = new System.Windows.Forms.Panel();
            this._txtType.Location = new System.Drawing.Point(0, 20);
            this._txtType.Size     = new System.Drawing.Size(211, 20);

            this._lblHeader.Location = new System.Drawing.Point(0, 0);
            this._lblHeader.Size     = new System.Drawing.Size(434, 16);
            this._lblHeader.Anchor   = (System.Windows.Forms.AnchorStyles.Top
                                        | System.Windows.Forms.AnchorStyles.Left);
            this._pnlHeader.Controls.AddRange(new System.Windows.Forms.Control[] {
                this._lblHeader
            });
            this._pnlHeader.Location = new System.Drawing.Point(6, 5);
            this._pnlHeader.Size     = new System.Drawing.Size(434, 16);
            this._pnlHeader.Anchor   = (System.Windows.Forms.AnchorStyles.Top
                                        | System.Windows.Forms.AnchorStyles.Left);
            this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] { this._dialogButtons,
                                                                                 this._pnlRight,
                                                                                 this._filterList });
            this._pnlMain.Location = new System.Drawing.Point(6, 27);
            this._pnlMain.Size     = new System.Drawing.Size(434, 253);
            this._pnlMain.Anchor   = (System.Windows.Forms.AnchorStyles.Bottom
                                      | System.Windows.Forms.AnchorStyles.Left);
            this._filterList.Size        = new System.Drawing.Size(198, 224);
            this._filterList.Location    = new System.Drawing.Point(0, 0);
            this._rbCompare.Location     = new System.Drawing.Point(8, 21);
            this._rbCompare.Size         = new System.Drawing.Size(211, 17);
            this._lblCompare.Location    = new System.Drawing.Point(0, 4);
            this._lblCompare.Size        = new System.Drawing.Size(211, 16);
            this._dialogButtons.Location = new System.Drawing.Point(197, 230);
            this._dialogButtons.Size     = new System.Drawing.Size(237, 23);
            this._lblType.Location       = new System.Drawing.Point(0, 4);
            this._lblType.Size           = new System.Drawing.Size(211, 16);
            this._txtMethod.Location     = new System.Drawing.Point(0, 64);
            this._txtMethod.Size         = new System.Drawing.Size(211, 20);
            this._txtArgument.Location   = new System.Drawing.Point(0, 64);
            this._txtArgument.Size       = new System.Drawing.Size(211, 20);
            this._pnlRight.Controls.AddRange(new System.Windows.Forms.Control[] { this._pnlCompare,
                                                                                  this._pnlDelegate,
                                                                                  this._glAttributes,
                                                                                  this._glType,
                                                                                  this._rbDelegate,
                                                                                  this._rbCompare });
            this._pnlRight.Location     = new System.Drawing.Point(215, 0);
            this._pnlRight.Size         = new System.Drawing.Size(219, 226);
            this._lblMethod.Location    = new System.Drawing.Point(0, 48);
            this._lblMethod.Size        = new System.Drawing.Size(211, 16);
            this._glAttributes.Location = new System.Drawing.Point(0, 73);
            this._glAttributes.Size     = new System.Drawing.Size(216, 16);
            this._rbDelegate.Location   = new System.Drawing.Point(8, 46);
            this._rbDelegate.Size       = new System.Drawing.Size(211, 17);
            this._glType.Size           = new System.Drawing.Size(216, 16);
            this._pnlCompare.Controls.AddRange(new System.Windows.Forms.Control[] { this._txtArgument,
                                                                                    this._lblArgument,
                                                                                    this._cbCompare,
                                                                                    this._lblCompare });
            this._pnlCompare.Location     = new System.Drawing.Point(8, 90);
            this._pnlCompare.Size         = new System.Drawing.Size(211, 136);
            this._cbCompare.DropDownWidth = 211;
            this._cbCompare.Location      = new System.Drawing.Point(0, 20);
            this._cbCompare.Size          = new System.Drawing.Size(211, 21);
            this._cbCompare.Sorted        = true;
            this._lblArgument.Location    = new System.Drawing.Point(0, 48);
            this._lblArgument.Size        = new System.Drawing.Size(211, 16);
            this._pnlDelegate.Controls.AddRange(new System.Windows.Forms.Control[] { this._txtType,
                                                                                     this._txtMethod,
                                                                                     this._lblMethod,
                                                                                     this._lblType });
            this._pnlDelegate.Location = new System.Drawing.Point(8, 90);
            this._pnlDelegate.Size     = new System.Drawing.Size(211, 136);
            this.FormBorderStyle       = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.ClientSize            = new System.Drawing.Size(448, 289);
            this.AcceptButton          = _dialogButtons.CmdOK;
            this.CancelButton          = _dialogButtons.CmdCancel;
            this.Controls.AddRange(new System.Windows.Forms.Control[] { this._pnlHeader, this._pnlMain });
        }
        private void InitForm()
        {
            this._cmbDataSource = new UnsettableComboBox();
            this._cmbLabelField = new UnsettableComboBox();
            this._cmbDataMember = new UnsettableComboBox();
            this._xLists        = new InterchangeableLists();

            GroupLabel grplblData = new GroupLabel();

            grplblData.SetBounds(4, 4, 392, 16);
            grplblData.Text     = SR.GetString(SR.ObjectListGeneralPage_DataGroupLabel);
            grplblData.TabIndex = 0;
            grplblData.TabStop  = false;

            Label lblDataSource = new Label();

            lblDataSource.SetBounds(12, 24, 174, 16);
            lblDataSource.Text     = SR.GetString(SR.ObjectListGeneralPage_DataSourceCaption);
            lblDataSource.TabStop  = false;
            lblDataSource.TabIndex = 1;

            _cmbDataSource.SetBounds(12, 40, 154, 64);
            _cmbDataSource.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbDataSource.Sorted                = true;
            _cmbDataSource.TabIndex              = 2;
            _cmbDataSource.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_UnboundComboEntry);
            _cmbDataSource.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            Label lblDataMember = new Label();

            lblDataMember.SetBounds(206, 24, 174, 16);
            lblDataMember.Text     = SR.GetString(SR.ObjectListGeneralPage_DataMemberCaption);
            lblDataMember.TabStop  = false;
            lblDataMember.TabIndex = 3;

            _cmbDataMember.SetBounds(206, 40, 154, 64);
            _cmbDataMember.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbDataMember.Sorted                = true;
            _cmbDataMember.TabIndex              = 4;
            _cmbDataMember.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_NoneComboEntry);
            _cmbDataMember.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            Label lblLabelField = new Label();

            lblLabelField.SetBounds(12, 67, 174, 16);
            lblLabelField.Text     = SR.GetString(SR.ObjectListGeneralPage_LabelFieldCaption);
            lblLabelField.TabStop  = false;
            lblLabelField.TabIndex = 5;

            _cmbLabelField.SetBounds(12, 83, 154, 64);
            _cmbLabelField.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbLabelField.Sorted                = true;
            _cmbLabelField.TabIndex              = 6;
            _cmbLabelField.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_NoneComboEntry);
            _cmbLabelField.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
            _cmbLabelField.TextChanged          += new EventHandler(this.OnSetPageDirty);

            GroupLabel grplblTableFields = new GroupLabel();

            grplblTableFields.SetBounds(4, 118, 392, 16);
            grplblTableFields.Text     = SR.GetString(SR.ObjectListGeneralPage_TableFieldsGroupLabel);
            grplblTableFields.TabIndex = 9;
            grplblTableFields.TabStop  = false;

            _xLists.Location            = new System.Drawing.Point(4, 130);
            _xLists.TabIndex            = 10;
            _xLists.OnComponentChanged += new EventHandler(this.OnSetPageDirty);
            _xLists.TabStop             = true;
            _xLists.SetTitles(SR.GetString(SR.ObjectListGeneralPage_TableFieldsAvailableListLabel),
                              SR.GetString(SR.ObjectListGeneralPage_TableFieldsSelectedListLabel));

            GroupLabel grplblAppearance = new GroupLabel();

            grplblAppearance.SetBounds(4, 257, 392, 16);
            grplblAppearance.Text     = SR.GetString(SR.ObjectListGeneralPage_AppearanceGroupLabel);
            grplblAppearance.TabIndex = 11;
            grplblAppearance.TabStop  = false;

            Label lblBackCommandText = new Label();

            lblBackCommandText.SetBounds(12, 277, 174, 16);
            lblBackCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_BackCommandTextCaption);
            lblBackCommandText.TabStop  = false;
            lblBackCommandText.TabIndex = 12;

            _txtBackCommandText = new TextBox();
            _txtBackCommandText.SetBounds(12, 293, 154, 20);
            _txtBackCommandText.TabIndex     = 13;
            _txtBackCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblDetailsCommandText = new Label();

            lblDetailsCommandText.SetBounds(206, 277, 174, 16);
            lblDetailsCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_DetailsCommandTextCaption);
            lblDetailsCommandText.TabStop  = false;
            lblDetailsCommandText.TabIndex = 14;

            _txtDetailsCommandText = new TextBox();
            _txtDetailsCommandText.SetBounds(206, 293, 154, 20);
            _txtDetailsCommandText.TabIndex     = 15;
            _txtDetailsCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblMoreText = new Label();

            lblMoreText.SetBounds(12, 320, 174, 16);
            lblMoreText.Text     = SR.GetString(SR.ObjectListGeneralPage_MoreTextCaption);
            lblMoreText.TabStop  = false;
            lblMoreText.TabIndex = 16;

            _txtMoreText = new TextBox();
            _txtMoreText.SetBounds(12, 336, 154, 20);
            _txtMoreText.TabIndex     = 17;
            _txtMoreText.TextChanged += new EventHandler(this.OnSetPageDirty);

            GroupLabel pagingGroup    = new GroupLabel();
            Label      itemCountLabel = new Label();

            _txtItemCount = new TextBox();

            Label itemsPerPageLabel = new Label();

            _txtItemsPerPage = new TextBox();

            pagingGroup.SetBounds(4, 371, 392, 16);
            pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
            pagingGroup.TabIndex = 18;
            pagingGroup.TabStop  = false;

            itemCountLabel.SetBounds(12, 391, 174, 16);
            itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
            itemCountLabel.TabStop  = false;
            itemCountLabel.TabIndex = 19;

            _txtItemCount.SetBounds(12, 407, 154, 20);
            _txtItemCount.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemCount.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemCount.TabIndex     = 20;

            itemsPerPageLabel.SetBounds(206, 391, 174, 16);
            itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
            itemsPerPageLabel.TabStop  = false;
            itemsPerPageLabel.TabIndex = 21;

            _txtItemsPerPage.SetBounds(206, 407, 154, 20);
            _txtItemsPerPage.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemsPerPage.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemsPerPage.TabIndex     = 22;

            this.Text = SR.GetString(SR.ObjectListGeneralPage_Title);
            this.Size = new Size(402, 436);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                grplblData,
                lblDataSource,
                _cmbDataSource,
                lblDataMember,
                _cmbDataMember,
                lblLabelField,
                _cmbLabelField,
                grplblTableFields,
                _xLists,
                grplblAppearance,
                lblBackCommandText,
                _txtBackCommandText,
                lblDetailsCommandText,
                _txtDetailsCommandText,
                lblMoreText,
                _txtMoreText,
                pagingGroup,
                itemCountLabel,
                _txtItemCount,
                itemsPerPageLabel,
                _txtItemsPerPage
            });
        }
Esempio n. 18
0
        /// <include file='doc\DataListGeneralPage.uex' path='docs/doc[@for="DataListGeneralPage.InitForm"]/*' />
        /// <devdoc>
        ///   Initializes the UI of the form.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel dataGroup       = new GroupLabel();
            Label      dataSourceLabel = new Label();

            this.dataSourceCombo = new UnsettableComboBox();
            Label dataMemberLabel = new Label();

            this.dataMemberCombo = new UnsettableComboBox();
            Label dataKeyFieldLabel = new Label();

            this.dataKeyFieldCombo = new UnsettableComboBox();
            GroupLabel headerFooterGroup = new GroupLabel();

            this.showHeaderCheck = new CheckBox();
            this.showFooterCheck = new CheckBox();
            GroupLabel repeatGroup        = new GroupLabel();
            Label      repeatColumnsLabel = new Label();

            this.repeatColumnsEdit = new NumberEdit();
            Label repeatDirectionLabel = new Label();

            this.repeatDirectionCombo = new ComboBox();
            Label repeatLayoutLabel = new Label();

            this.repeatLayoutCombo = new ComboBox();
            GroupLabel templatesGroup = new GroupLabel();

            this.extractRowsCheck = new CheckBox();

            dataGroup.SetBounds(4, 4, 360, 16);
            dataGroup.Text     = SR.GetString(SR.DLGen_DataGroup);
            dataGroup.TabIndex = 0;
            dataGroup.TabStop  = false;

            dataSourceLabel.SetBounds(8, 24, 170, 16);
            dataSourceLabel.Text     = SR.GetString(SR.DLGen_DataSource);
            dataSourceLabel.TabStop  = false;
            dataSourceLabel.TabIndex = 1;

            dataSourceCombo.SetBounds(8, 40, 140, 21);
            dataSourceCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataSourceCombo.Sorted                = true;
            dataSourceCombo.TabIndex              = 2;
            dataSourceCombo.NotSetText            = SR.GetString(SR.DLGen_DSUnbound);
            dataSourceCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            dataMemberLabel.SetBounds(184, 24, 170, 16);
            dataMemberLabel.Text     = SR.GetString(SR.DLGen_DataMember);
            dataMemberLabel.TabStop  = false;
            dataMemberLabel.TabIndex = 3;

            dataMemberCombo.SetBounds(184, 40, 140, 21);
            dataMemberCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataMemberCombo.Sorted                = true;
            dataMemberCombo.TabIndex              = 4;
            dataMemberCombo.NotSetText            = SR.GetString(SR.DLGen_DMNone);
            dataMemberCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            dataKeyFieldLabel.SetBounds(8, 66, 170, 16);
            dataKeyFieldLabel.Text     = SR.GetString(SR.DLGen_DataKey);
            dataKeyFieldLabel.TabStop  = false;
            dataKeyFieldLabel.TabIndex = 4;

            dataKeyFieldCombo.SetBounds(8, 82, 140, 21);
            dataKeyFieldCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataKeyFieldCombo.Sorted                = true;
            dataKeyFieldCombo.TabIndex              = 5;
            dataKeyFieldCombo.NotSetText            = SR.GetString(SR.DLGen_DKNone);
            dataKeyFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataKeyField);

            headerFooterGroup.SetBounds(4, 108, 360, 16);
            headerFooterGroup.Text     = SR.GetString(SR.DLGen_HeaderFooterGroup);
            headerFooterGroup.TabIndex = 6;
            headerFooterGroup.TabStop  = false;

            showHeaderCheck.SetBounds(8, 128, 170, 16);
            showHeaderCheck.TabIndex        = 7;
            showHeaderCheck.Text            = SR.GetString(SR.DLGen_ShowHeader);
            showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showHeaderCheck.FlatStyle       = FlatStyle.System;
            showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);

            showFooterCheck.SetBounds(8, 146, 170, 16);
            showFooterCheck.TabIndex        = 8;
            showFooterCheck.Text            = SR.GetString(SR.DLGen_ShowFooter);
            showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showFooterCheck.FlatStyle       = FlatStyle.System;
            showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);

            repeatGroup.SetBounds(4, 172, 360, 16);
            repeatGroup.Text     = SR.GetString(SR.DLGen_RepeatLayoutGroup);
            repeatGroup.TabIndex = 9;
            repeatGroup.TabStop  = false;

            repeatColumnsLabel.SetBounds(8, 192, 106, 16);
            repeatColumnsLabel.Text     = SR.GetString(SR.DLGen_RepeatColumns);
            repeatColumnsLabel.TabStop  = false;
            repeatColumnsLabel.TabIndex = 10;

            repeatColumnsEdit.SetBounds(112, 188, 40, 21);
            repeatColumnsEdit.AllowDecimal  = false;
            repeatColumnsEdit.AllowNegative = false;
            repeatColumnsEdit.TabIndex      = 11;
            repeatColumnsEdit.TextChanged  += new EventHandler(this.OnChangedRepeatProps);

            repeatDirectionLabel.SetBounds(8, 217, 106, 16);
            repeatDirectionLabel.Text     = SR.GetString(SR.DLGen_RepeatDirection);
            repeatDirectionLabel.TabStop  = false;
            repeatDirectionLabel.TabIndex = 12;

            repeatDirectionCombo.SetBounds(112, 213, 140, 56);
            repeatDirectionCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            repeatDirectionCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DLGen_RD_Horz),
                SR.GetString(SR.DLGen_RD_Vert)
            });
            repeatDirectionCombo.TabIndex              = 13;
            repeatDirectionCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);

            repeatLayoutLabel.SetBounds(8, 242, 106, 16);
            repeatLayoutLabel.Text     = SR.GetString(SR.DLGen_RepeatLayout);
            repeatLayoutLabel.TabStop  = false;
            repeatLayoutLabel.TabIndex = 14;

            repeatLayoutCombo.SetBounds(112, 238, 140, 21);
            repeatLayoutCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            repeatLayoutCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DLGen_RL_Table),
                SR.GetString(SR.DLGen_RL_Flow)
            });
            repeatLayoutCombo.TabIndex              = 15;
            repeatLayoutCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);

            templatesGroup.SetBounds(4, 266, 360, 16);
            templatesGroup.Text     = "Templates";
            templatesGroup.TabIndex = 16;
            templatesGroup.TabStop  = false;
            templatesGroup.Visible  = false;

            extractRowsCheck.SetBounds(8, 286, 260, 16);
            extractRowsCheck.Text            = "Extract rows from Tables in template content";
            extractRowsCheck.TabIndex        = 17;
            extractRowsCheck.Visible         = false;
            extractRowsCheck.FlatStyle       = FlatStyle.System;
            extractRowsCheck.CheckedChanged += new EventHandler(this.OnCheckChangedExtractRows);

            this.Text = SR.GetString(SR.DLGen_Text);
            this.Size = new Size(368, 280);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataListGeneralPage.ico");

            Controls.Clear();
            Controls.AddRange(new Control[] {
                extractRowsCheck,
                templatesGroup,
                repeatLayoutCombo,
                repeatLayoutLabel,
                repeatDirectionCombo,
                repeatDirectionLabel,
                repeatColumnsEdit,
                repeatColumnsLabel,
                repeatGroup,
                showFooterCheck,
                showHeaderCheck,
                headerFooterGroup,
                dataKeyFieldCombo,
                dataKeyFieldLabel,
                dataMemberCombo,
                dataMemberLabel,
                dataSourceCombo,
                dataSourceLabel,
                dataGroup
            });
        }
Esempio n. 19
0
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.allowPagingCheck       = new System.Windows.Forms.CheckBox();
            this.allowCustomPagingCheck = new System.Windows.Forms.CheckBox();
            System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
            this.pageSizeEdit = new NumberEdit();
            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            GroupLabel label4 = new GroupLabel();

            this.visibleCheck = new System.Windows.Forms.CheckBox();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.posCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.modeCombo = new ComboBox();
            System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
            this.nextPageTextEdit = new System.Windows.Forms.TextBox();
            System.Windows.Forms.Label label8 = new System.Windows.Forms.Label();
            this.prevPageTextEdit = new System.Windows.Forms.TextBox();
            System.Windows.Forms.Label label9 = new System.Windows.Forms.Label();
            this.pageButtonCountEdit = new NumberEdit();
            label.SetBounds(4, 4, 0x1af, 0x10);
            label.Text     = System.Design.SR.GetString("DGPg_PagingGroup");
            label.TabStop  = false;
            label.TabIndex = 0;
            this.allowPagingCheck.SetBounds(12, 0x18, 180, 0x10);
            this.allowPagingCheck.Text            = System.Design.SR.GetString("DGPg_AllowPaging");
            this.allowPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowPagingCheck.TabIndex        = 1;
            this.allowPagingCheck.FlatStyle       = FlatStyle.System;
            this.allowPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowPaging);
            this.allowCustomPagingCheck.SetBounds(220, 0x18, 180, 0x10);
            this.allowCustomPagingCheck.Text            = System.Design.SR.GetString("DGPg_AllowCustomPaging");
            this.allowCustomPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowCustomPagingCheck.TabIndex        = 2;
            this.allowCustomPagingCheck.FlatStyle       = FlatStyle.System;
            this.allowCustomPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowCustomPaging);
            label2.SetBounds(12, 50, 100, 14);
            label2.Text     = System.Design.SR.GetString("DGPg_PageSize");
            label2.TabStop  = false;
            label2.TabIndex = 3;
            this.pageSizeEdit.SetBounds(0x70, 0x2e, 40, 0x18);
            this.pageSizeEdit.TabIndex      = 4;
            this.pageSizeEdit.AllowDecimal  = false;
            this.pageSizeEdit.AllowNegative = false;
            this.pageSizeEdit.TextChanged  += new EventHandler(this.OnTextChangedPageSize);
            label3.SetBounds(0x9e, 50, 80, 14);
            label3.Text     = System.Design.SR.GetString("DGPg_Rows");
            label3.TabStop  = false;
            label3.TabIndex = 5;
            label4.SetBounds(4, 0x4e, 0x1af, 14);
            label4.Text     = System.Design.SR.GetString("DGPg_NavigationGroup");
            label4.TabStop  = false;
            label4.TabIndex = 6;
            this.visibleCheck.SetBounds(12, 100, 260, 0x10);
            this.visibleCheck.Text            = System.Design.SR.GetString("DGPg_Visible");
            this.visibleCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.visibleCheck.TabIndex        = 7;
            this.visibleCheck.FlatStyle       = FlatStyle.System;
            this.visibleCheck.CheckedChanged += new EventHandler(this.OnCheckChangedVisible);
            label5.SetBounds(12, 0x7a, 150, 14);
            label5.Text     = System.Design.SR.GetString("DGPg_Position");
            label5.TabStop  = false;
            label5.TabIndex = 8;
            this.posCombo.SetBounds(12, 0x8a, 0x90, 0x15);
            this.posCombo.TabIndex      = 9;
            this.posCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.posCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DGPg_Pos_Top"), System.Design.SR.GetString("DGPg_Pos_Bottom"), System.Design.SR.GetString("DGPg_Pos_TopBottom") });
            this.posCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);
            label6.SetBounds(12, 0xa6, 150, 14);
            label6.Text     = System.Design.SR.GetString("DGPg_Mode");
            label6.TabStop  = false;
            label6.TabIndex = 10;
            this.modeCombo.SetBounds(12, 0xb6, 0x90, 0x40);
            this.modeCombo.TabIndex      = 11;
            this.modeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.modeCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DGPg_Mode_Buttons"), System.Design.SR.GetString("DGPg_Mode_Numbers") });
            this.modeCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);
            label7.SetBounds(12, 210, 200, 14);
            label7.Text     = System.Design.SR.GetString("DGPg_NextPage");
            label7.TabStop  = false;
            label7.TabIndex = 12;
            this.nextPageTextEdit.SetBounds(12, 0xe2, 0x90, 0x18);
            this.nextPageTextEdit.TabIndex     = 13;
            this.nextPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);
            label8.SetBounds(220, 210, 200, 14);
            label8.Text     = System.Design.SR.GetString("DGPg_PrevPage");
            label8.TabStop  = false;
            label8.TabIndex = 14;
            this.prevPageTextEdit.SetBounds(220, 0xe2, 140, 0x18);
            this.prevPageTextEdit.TabIndex     = 15;
            this.prevPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);
            label9.SetBounds(12, 0xfe, 200, 14);
            label9.Text     = System.Design.SR.GetString("DGPg_ButtonCount");
            label9.TabStop  = false;
            label9.TabIndex = 0x10;
            this.pageButtonCountEdit.SetBounds(12, 270, 40, 0x18);
            this.pageButtonCountEdit.TabIndex      = 0x11;
            this.pageButtonCountEdit.AllowDecimal  = false;
            this.pageButtonCountEdit.AllowNegative = false;
            this.pageButtonCountEdit.TextChanged  += new EventHandler(this.OnPagerChanged);
            this.Text = System.Design.SR.GetString("DGPg_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DGPg_Desc");
            base.Size = new Size(0x1d0, 300);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataGridPagingPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] {
                this.pageButtonCountEdit, label9, this.prevPageTextEdit, label8, this.nextPageTextEdit, label7, this.modeCombo, label6, this.posCombo, label5, this.visibleCheck, label4, label3, this.pageSizeEdit, label2, this.allowCustomPagingCheck,
                this.allowPagingCheck, label
            });
        }
        protected override void InitForm()
        {
            base.InitForm();

            this._objectList = (ObjectList)Component;

            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Fields.ico"
                );
            this.Size = new Size(402, 300);
            this.Text = SR.GetString(SR.ObjectListFieldsPage_Title);

            _ckbAutoGenerateFields = new CheckBox();
            _cmbDataField          = new UnsettableComboBox();
            _ckbVisible            = new CheckBox();
            _txtDataFormatString   = new TextBox();
            _txtTitle = new TextBox();

            _ckbAutoGenerateFields.SetBounds(4, 4, 396, LabelHeight);
            _ckbAutoGenerateFields.Text            = SR.GetString(SR.ObjectListFieldsPage_AutoGenerateFieldsCaption);
            _ckbAutoGenerateFields.FlatStyle       = FlatStyle.System;
            _ckbAutoGenerateFields.CheckedChanged += new EventHandler(this.OnSetPageDirty);
            _ckbAutoGenerateFields.TabIndex        = 0;

            GroupLabel grplblFieldList = new GroupLabel();

            grplblFieldList.SetBounds(4, 32, 392, LabelHeight);
            grplblFieldList.Text     = SR.GetString(SR.ObjectListFieldsPage_FieldListGroupLabel);
            grplblFieldList.TabIndex = 1;
            grplblFieldList.TabStop  = false;

            TreeList.TabIndex = 2;

            Label lblDataField = new Label();

            lblDataField.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblDataField.Text     = SR.GetString(SR.ObjectListFieldsPage_DataFieldCaption);
            lblDataField.TabStop  = false;
            lblDataField.TabIndex = Index;

            Y += LabelHeight;
            _cmbDataField.SetBounds(X, Y, ControlWidth, CmbHeight);
            _cmbDataField.DropDownStyle         = ComboBoxStyle.DropDown;
            _cmbDataField.Sorted                = true;
            _cmbDataField.NotSetText            = SR.GetString(SR.ObjectListFieldsPage_NoneComboEntry);
            _cmbDataField.TextChanged          += new EventHandler(this.OnPropertyChanged);
            _cmbDataField.SelectedIndexChanged += new EventHandler(this.OnPropertyChanged);
            _cmbDataField.TabIndex              = Index + 1;

            Y += CellSpace;
            Label lblDataFormatString = new Label();

            lblDataFormatString.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblDataFormatString.Text     = SR.GetString(SR.ObjectListFieldsPage_DataFormatStringCaption);
            lblDataFormatString.TabStop  = false;
            lblDataFormatString.TabIndex = Index + 2;

            Y += LabelHeight;
            _txtDataFormatString.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtDataFormatString.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtDataFormatString.TabIndex     = Index + 3;

            Y += CellSpace;
            Label lblTitle = new Label();

            lblTitle.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblTitle.Text     = SR.GetString(SR.ObjectListFieldsPage_TitleCaption);
            lblTitle.TabStop  = false;
            lblTitle.TabIndex = Index + 4;

            Y += LabelHeight;
            _txtTitle.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtTitle.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtTitle.TabIndex     = Index + 5;

            Y += CellSpace;
            _ckbVisible.SetBounds(X, Y, ControlWidth, CmbHeight);
            _ckbVisible.FlatStyle       = System.Windows.Forms.FlatStyle.System;
            _ckbVisible.Text            = SR.GetString(SR.ObjectListFieldsPage_VisibleCaption);
            _ckbVisible.CheckedChanged += new EventHandler(this.OnPropertyChanged);
            _ckbVisible.TabIndex        = Index + 6;

            this.Controls.AddRange(new Control[] {
                _ckbAutoGenerateFields,
                grplblFieldList,
                lblDataField,
                _cmbDataField,
                lblDataFormatString,
                _txtDataFormatString,
                lblTitle,
                _txtTitle,
                _ckbVisible
            });
        }
Esempio n. 21
0
        /// <summary>
        ///   Initializes the UI of the form.
        /// </summary>
        private void InitForm()
        {
            Debug.Assert(GetBaseControl() != null);
            _isBaseControlList = (GetBaseControl() is List);   // SelectionList otherwise.

            GroupLabel appearanceGroup   = new GroupLabel();
            GroupLabel pagingGroup       = null;
            Label      itemCountLabel    = null;
            Label      itemsPerPageLabel = null;
            Label      rowsLabel         = null;
            Label      decorationLabel   = null;
            Label      selectTypeLabel   = null;

            if (_isBaseControlList)
            {
                pagingGroup          = new GroupLabel();
                itemCountLabel       = new Label();
                _itemCountTextBox    = new TextBox();
                itemsPerPageLabel    = new Label();
                _itemsPerPageTextBox = new TextBox();
                decorationLabel      = new Label();
                _decorationCombo     = new ComboBox();
            }
            else
            {
                rowsLabel        = new Label();
                _rowsTextBox     = new TextBox();
                selectTypeLabel  = new Label();
                _selectTypeCombo = new ComboBox();
            }

            appearanceGroup.SetBounds(4, 4, 372, 16);
            appearanceGroup.Text     = SR.GetString(SR.ListGeneralPage_AppearanceGroupLabel);
            appearanceGroup.TabIndex = 0;
            appearanceGroup.TabStop  = false;

            if (_isBaseControlList)
            {
                decorationLabel.SetBounds(8, 24, 200, 16);
                decorationLabel.Text     = SR.GetString(SR.ListGeneralPage_DecorationCaption);
                decorationLabel.TabStop  = false;
                decorationLabel.TabIndex = 1;

                _decorationCombo.SetBounds(8, 40, 161, 21);
                _decorationCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
                _decorationCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
                _decorationCombo.Items.AddRange(new object[] {
                    SR.GetString(SR.ListGeneralPage_DecorationNone),
                    SR.GetString(SR.ListGeneralPage_DecorationBulleted),
                    SR.GetString(SR.ListGeneralPage_DecorationNumbered)
                });
                _decorationCombo.TabIndex = 2;

                pagingGroup.SetBounds(4, 77, 372, 16);
                pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
                pagingGroup.TabIndex = 3;
                pagingGroup.TabStop  = false;

                itemCountLabel.SetBounds(8, 97, 161, 16);
                itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
                itemCountLabel.TabStop  = false;
                itemCountLabel.TabIndex = 4;

                _itemCountTextBox.SetBounds(8, 113, 161, 20);
                _itemCountTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _itemCountTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _itemCountTextBox.TabIndex     = 5;

                itemsPerPageLabel.SetBounds(211, 97, 161, 16);
                itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
                itemsPerPageLabel.TabStop  = false;
                itemsPerPageLabel.TabIndex = 6;

                _itemsPerPageTextBox.SetBounds(211, 113, 161, 20);
                _itemsPerPageTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _itemsPerPageTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _itemsPerPageTextBox.TabIndex     = 7;
            }
            else
            {
                selectTypeLabel.SetBounds(8, 24, 161, 16);
                selectTypeLabel.Text     = SR.GetString(SR.ListGeneralPage_SelectTypeCaption);
                selectTypeLabel.TabStop  = false;
                selectTypeLabel.TabIndex = 1;

                _selectTypeCombo.SetBounds(8, 40, 161, 21);
                _selectTypeCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
                _selectTypeCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
                _selectTypeCombo.Items.AddRange(new object[] {
                    SR.GetString(SR.ListGeneralPage_SelectTypeDropDown),
                    SR.GetString(SR.ListGeneralPage_SelectTypeListBox),
                    SR.GetString(SR.ListGeneralPage_SelectTypeRadio),
                    SR.GetString(SR.ListGeneralPage_SelectTypeMultiSelectListBox),
                    SR.GetString(SR.ListGeneralPage_SelectTypeCheckBox)
                });
                _selectTypeCombo.TabIndex = 2;

                rowsLabel.SetBounds(211, 24, 161, 16);
                rowsLabel.Text     = SR.GetString(SR.ListGeneralPage_RowsCaption);
                rowsLabel.TabStop  = false;
                rowsLabel.TabIndex = 3;

                _rowsTextBox.SetBounds(211, 40, 161, 20);
                _rowsTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _rowsTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _rowsTextBox.TabIndex     = 4;
            }

            this.Text = SR.GetString(SR.ListGeneralPage_Title);
            this.Size = new Size(382, 270);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                appearanceGroup
            });

            if (_isBaseControlList)
            {
                this.Controls.AddRange(new Control[]
                {
                    _itemsPerPageTextBox,
                    itemsPerPageLabel,
                    _itemCountTextBox,
                    itemCountLabel,
                    pagingGroup,
                    decorationLabel,
                    _decorationCombo
                });
            }
            else
            {
                this.Controls.AddRange(new Control[]
                {
                    _rowsTextBox,
                    rowsLabel,
                    selectTypeLabel,
                    _selectTypeCombo
                });
            }
        }
Esempio n. 22
0
        /// <include file='doc\BordersPage.uex' path='docs/doc[@for="BordersPage.InitForm"]/*' />
        /// <devdoc>
        ///    Creates the UI of the page.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel cellMarginGroup  = new GroupLabel();
            Label      cellPaddingLabel = new Label();

            this.cellPaddingEdit = new NumberEdit();
            Label cellSpacingLabel = new Label();

            this.cellSpacingEdit = new NumberEdit();
            GroupLabel borderLinesGroup = new GroupLabel();
            Label      gridLinesLabel   = new Label();

            this.gridLinesCombo = new ComboBox();
            Label colorLabel = new Label();

            this.borderColorCombo        = new ColorComboBox();
            this.borderColorPickerButton = new Button();
            Label borderWidthLabel = new Label();

            this.borderWidthUnit = new UnitControl();

            cellMarginGroup.SetBounds(4, 4, 300, 16);
            cellMarginGroup.Text     = SR.GetString(SR.BDLBor_CellMarginsGroup);
            cellMarginGroup.TabStop  = false;
            cellMarginGroup.TabIndex = 0;

            cellPaddingLabel.Text = SR.GetString(SR.BDLBor_CellPadding);
            cellPaddingLabel.SetBounds(12, 24, 120, 14);
            cellPaddingLabel.TabStop  = false;
            cellPaddingLabel.TabIndex = 1;

            cellPaddingEdit.SetBounds(12, 40, 70, 20);
            cellPaddingEdit.AllowDecimal  = false;
            cellPaddingEdit.AllowNegative = false;
            cellPaddingEdit.TabIndex      = 2;
            cellPaddingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);

            cellSpacingLabel.Text = SR.GetString(SR.BDLBor_CellSpacing);
            cellSpacingLabel.SetBounds(160, 24, 120, 14);
            cellSpacingLabel.TabStop  = false;
            cellSpacingLabel.TabIndex = 3;

            cellSpacingEdit.SetBounds(160, 40, 70, 20);
            cellSpacingEdit.AllowDecimal  = false;
            cellSpacingEdit.AllowNegative = false;
            cellSpacingEdit.TabIndex      = 4;
            cellSpacingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);

            borderLinesGroup.SetBounds(4, 70, 300, 16);
            borderLinesGroup.Text     = SR.GetString(SR.BDLBor_BorderLinesGroup);
            borderLinesGroup.TabStop  = false;
            borderLinesGroup.TabIndex = 5;

            gridLinesLabel.Text = SR.GetString(SR.BDLBor_GridLines);
            gridLinesLabel.SetBounds(12, 90, 150, 14);
            gridLinesLabel.TabStop  = false;
            gridLinesLabel.TabIndex = 6;

            gridLinesCombo.SetBounds(12, 106, 140, 21);
            gridLinesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            gridLinesCombo.Items.Clear();
            gridLinesCombo.Items.AddRange(new object[] {
                SR.GetString(SR.BDLBor_GL_Horz),
                SR.GetString(SR.BDLBor_GL_Vert),
                SR.GetString(SR.BDLBor_GL_Both),
                SR.GetString(SR.BDLBor_GL_None)
            });
            gridLinesCombo.TabIndex              = 7;
            gridLinesCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);

            colorLabel.Text = SR.GetString(SR.BDLBor_BorderColor);
            colorLabel.SetBounds(12, 134, 150, 14);
            colorLabel.TabStop  = false;
            colorLabel.TabIndex = 8;

            borderColorCombo.SetBounds(12, 150, 140, 21);
            borderColorCombo.TabIndex              = 9;
            borderColorCombo.TextChanged          += new EventHandler(this.OnBordersChanged);
            borderColorCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);

            borderColorPickerButton.SetBounds(156, 149, 24, 22);
            borderColorPickerButton.Text      = "...";
            borderColorPickerButton.TabIndex  = 10;
            borderColorPickerButton.FlatStyle = FlatStyle.System;
            borderColorPickerButton.Click    += new EventHandler(this.OnClickColorPicker);

            borderWidthLabel.Text = SR.GetString(SR.BDLBor_BorderWidth);
            borderWidthLabel.SetBounds(12, 178, 150, 14);
            borderWidthLabel.TabStop  = false;
            borderWidthLabel.TabIndex = 11;

            borderWidthUnit.SetBounds(12, 194, 102, 22);
            borderWidthUnit.AllowNegativeValues = false;
            borderWidthUnit.AllowPercentValues  = false;
            borderWidthUnit.DefaultUnit         = UnitControl.UNIT_PX;
            borderWidthUnit.TabIndex            = 12;
            borderWidthUnit.Changed            += new EventHandler(OnBordersChanged);

            this.Text = SR.GetString(SR.BDLBor_Text);
            this.Size = new Size(308, 156);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "BordersPage.ico");

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                borderWidthUnit,
                borderWidthLabel,
                borderColorPickerButton,
                borderColorCombo,
                colorLabel,
                gridLinesCombo,
                gridLinesLabel,
                borderLinesGroup,
                cellSpacingEdit,
                cellSpacingLabel,
                cellPaddingEdit,
                cellPaddingLabel,
                cellMarginGroup
            });
        }
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.showHeaderCheck = new System.Windows.Forms.CheckBox();
            this.showFooterCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label2 = new GroupLabel();

            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.repeatColumnsEdit = new NumberEdit();
            System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
            this.repeatDirectionCombo = new ComboBox();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.repeatLayoutCombo = new ComboBox();
            GroupLabel label6 = new GroupLabel();

            this.extractRowsCheck = new System.Windows.Forms.CheckBox();
            label.SetBounds(4, 4, 360, 0x10);
            label.Text     = System.Design.SR.GetString("DLGen_HeaderFooterGroup");
            label.TabIndex = 7;
            label.TabStop  = false;
            this.showHeaderCheck.SetBounds(8, 0x18, 170, 0x10);
            this.showHeaderCheck.TabIndex        = 8;
            this.showHeaderCheck.Text            = System.Design.SR.GetString("DLGen_ShowHeader");
            this.showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showHeaderCheck.FlatStyle       = FlatStyle.System;
            this.showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);
            this.showFooterCheck.SetBounds(8, 0x2a, 170, 0x10);
            this.showFooterCheck.TabIndex        = 9;
            this.showFooterCheck.Text            = System.Design.SR.GetString("DLGen_ShowFooter");
            this.showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showFooterCheck.FlatStyle       = FlatStyle.System;
            this.showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);
            label2.SetBounds(4, 0x44, 360, 0x10);
            label2.Text     = System.Design.SR.GetString("DLGen_RepeatLayoutGroup");
            label2.TabIndex = 10;
            label2.TabStop  = false;
            label3.SetBounds(8, 0x58, 0x6a, 0x10);
            label3.Text     = System.Design.SR.GetString("DLGen_RepeatColumns");
            label3.TabStop  = false;
            label3.TabIndex = 11;
            this.repeatColumnsEdit.SetBounds(0x70, 0x54, 40, 0x15);
            this.repeatColumnsEdit.AllowDecimal  = false;
            this.repeatColumnsEdit.AllowNegative = false;
            this.repeatColumnsEdit.TabIndex      = 12;
            this.repeatColumnsEdit.TextChanged  += new EventHandler(this.OnChangedRepeatProps);
            label4.SetBounds(8, 0x71, 0x6a, 0x10);
            label4.Text     = System.Design.SR.GetString("DLGen_RepeatDirection");
            label4.TabStop  = false;
            label4.TabIndex = 13;
            this.repeatDirectionCombo.SetBounds(0x70, 0x6d, 140, 0x38);
            this.repeatDirectionCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.repeatDirectionCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DLGen_RD_Horz"), System.Design.SR.GetString("DLGen_RD_Vert") });
            this.repeatDirectionCombo.TabIndex              = 14;
            this.repeatDirectionCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);
            label5.SetBounds(8, 0x8a, 0x6a, 0x10);
            label5.Text     = System.Design.SR.GetString("DLGen_RepeatLayout");
            label5.TabStop  = false;
            label5.TabIndex = 15;
            this.repeatLayoutCombo.SetBounds(0x70, 0x86, 140, 0x15);
            this.repeatLayoutCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.repeatLayoutCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DLGen_RL_Table"), System.Design.SR.GetString("DLGen_RL_Flow") });
            this.repeatLayoutCombo.TabIndex              = 0x10;
            this.repeatLayoutCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);
            label6.SetBounds(4, 0xa2, 360, 0x10);
            label6.Text     = System.Design.SR.GetString("DLGen_Templates");
            label6.TabIndex = 0x11;
            label6.TabStop  = false;
            label6.Visible  = false;
            this.extractRowsCheck.SetBounds(8, 0xb6, 260, 0x10);
            this.extractRowsCheck.Text            = System.Design.SR.GetString("DLGen_ExtractRows");
            this.extractRowsCheck.TabIndex        = 0x12;
            this.extractRowsCheck.Visible         = false;
            this.extractRowsCheck.FlatStyle       = FlatStyle.System;
            this.extractRowsCheck.CheckedChanged += new EventHandler(this.OnCheckChangedExtractRows);
            this.Text = System.Design.SR.GetString("DLGen_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DLGen_Desc");
            base.Size = new Size(0x170, 280);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataListGeneralPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.extractRowsCheck, label6, this.repeatLayoutCombo, label5, this.repeatDirectionCombo, label4, this.repeatColumnsEdit, label3, label2, this.showFooterCheck, this.showHeaderCheck, label });
        }