Пример #1
0
        private void UpdateGroupDepartmentsHours()
        {
            int y = 40;

            gb_departmentsHours.Controls.Clear();
            foreach (var item in (listProjectName.SelectedItem.Tag as Project).HoursForDepartment)
            {
                RadLabel label = new RadLabel();
                label.Location = new Point(23, y);
                label.Name     = item.DepartmentUser.Department;
                label.Size     = new Size(72, 21);
                label.Text     = item.DepartmentUser.Department;

                RadSpinEditor spinEditor = new RadSpinEditor();
                spinEditor.Location  = new System.Drawing.Point(110, y);
                spinEditor.Name      = item.DepartmentUser.Department;
                spinEditor.Size      = new Size(100, 20);
                spinEditor.ThemeName = "EvalFormTheme";
                spinEditor.Value     = item.SumHours;
                spinEditor.ReadOnly  = true;

                gb_departmentsHours.Controls.Add(label);
                gb_departmentsHours.Controls.Add(spinEditor);
                y += 40;
            }
        }
        public override ControlStyleBuilderInfoList GetThemeDesignedControls(Control previewSurface)
        {
            RadSpinEditor control = new RadSpinEditor();
            int           i;

            i = control.SpinElement.Children.Count;
            // PATCH - See the fix of Boyko in RadElement.Propagate[Suspend/Resume]Layout()

            /*control.BeginInit();
             * control.Bounds = new System.Drawing.Rectangle(0, 0, 100, 15);
             * control.EndInit();*/

            RadSpinEditor controlStructure = new RadSpinEditor();


            i = controlStructure.SpinElement.Children.Count;
            // PATCH - See the fix of Boyko in RadElement.Propagate[Suspend/Resume]Layout()

            /*controlStructure.BeginInit();
             * controlStructure.Bounds = new System.Drawing.Rectangle(0, 0, 100, 15);
             * controlStructure.EndInit();*/

            ControlStyleBuilderInfo designed = new ControlStyleBuilderInfo(control, controlStructure.RootElement);

            designed.Placemenet           = PreviewControlPlacemenet.MiddleCenter;
            designed.MainElementClassName = typeof(RadSpinControlElement).FullName;

            ControlStyleBuilderInfoList res = new ControlStyleBuilderInfoList();

            res.Add(designed);

            return(res);
        }
Пример #3
0
        private void UpdateGroupDepartmentsHours()
        {
            int y = 33;

            gb_departmentsHours.Controls.Clear();
            foreach (var item in (radGridView1.CurrentRow.Tag as Project).HoursForDepartment)
            {
                RadLabel label = new RadLabel();
                label.Location = new Point(16, y);
                label.Name     = item.DepartmentUser.Department;
                label.Size     = new Size(55, 18);
                label.Text     = item.DepartmentUser.Department;

                RadSpinEditor spinEditor = new RadSpinEditor();
                spinEditor.Location  = new System.Drawing.Point(105, y);
                spinEditor.Name      = item.DepartmentUser.Department;
                spinEditor.Size      = new Size(88, 22);
                spinEditor.ThemeName = "EvalFormTheme";
                spinEditor.Minimum   = 1;
                spinEditor.Maximum   = 120000;
                spinEditor.Value     = item.SumHours;

                gb_departmentsHours.Controls.Add(label);
                gb_departmentsHours.Controls.Add(spinEditor);
                y += 37;
            }
        }
Пример #4
0
        private void SetScrollBarValue(RadSpinEditor input)
        {
            int newValue = (int)input.Value;

            if (input == this.spinMax)
            {
                SetCurrentMaximum(newValue);
            }
            else if (input == this.spinMin)
            {
                SetCurrentMinimum(newValue);
            }
            else if (input == this.spinLargeChange)
            {
                SetCurrentLargeChange(newValue);
            }
            else if (input == this.spinSmallChange)
            {
                SetCurrentSmallChange(newValue);
            }
            else if (input == this.spinValue)
            {
                SetCurrentValue(newValue);
            }

            UpdateScrollbars();
        }
Пример #5
0
        public override ControlStyleBuilderInfoList GetThemeDesignedControls(Control previewSurface)
        {
            ControlStyleBuilderInfoList res = new ControlStyleBuilderInfoList();

            // ComboBox
            RadSpinEditor spinControlElement = new RadSpinEditor();

            RadSpinEditor spinControlElementStructure = new RadSpinEditor();

            ControlStyleBuilderInfo designed = new ControlStyleBuilderInfo(spinControlElement, spinControlElementStructure.RootElement);

            designed.Placemenet           = PreviewControlPlacemenet.MiddleCenter;
            designed.MainElementClassName = typeof(RadComboBoxElement).FullName;
            res.Add(designed);


            return(res);
        }
        public void AddNumWorke(string nameWorker)
        {
            RadGroupBox radGroupBox = new RadGroupBox()
            {
                AccessibleRole = AccessibleRole.Grouping,
                HeaderText     = "",
                Location       = new Point(19, y),
                Name           = nameWorker,
                Size           = new System.Drawing.Size(200, 53),
                ThemeName      = "MaterialTeal"
            };

            RadLabel label = new RadLabel()
            {
                Location  = new Point(13, 19),
                Name      = "lbl_" + nameWorker,
                Size      = new Size(100, 36),
                TabIndex  = 0,
                Text      = nameWorker,
                ThemeName = "MaterialTeal"
            };

            RadSpinEditor spinEditor = new RadSpinEditor()
            {
                Location  = new Point(94, 9),
                Name      = "num_" + nameWorker,
                Size      = new Size(100, 36),
                TabIndex  = 1,
                ThemeName = "MaterialTeal"
            };

            radGroupBox.Controls.Add(label);
            radGroupBox.Controls.Add(spinEditor);
            selectedWorkers.Controls.Add(radGroupBox);
            y += 60;
        }
Пример #7
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1  = new TableLayoutPanel();
     this.radLabelAmount     = new RadLabel();
     this.radTrackBarValue   = new RadTrackBar();
     this.radSpinEditorValue = new RadSpinEditor();
     this.radButtonReset     = new RadButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelAmount.BeginInit();
     this.radTrackBarValue.BeginInit();
     this.radSpinEditorValue.BeginInit();
     this.radButtonReset.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelAmount, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarValue, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorValue, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 2);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.Size              = new Size(292, 110);
     this.tableLayoutPanel1.TabIndex          = 0;
     this.radLabelAmount.Anchor               = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelAmount.Location             = new Point(3, 9);
     this.radLabelAmount.Name                 = "radLabelAmount";
     this.radLabelAmount.Size                 = new Size(47, 18);
     this.radLabelAmount.TabIndex             = 0;
     this.radLabelAmount.Text                 = "Amount";
     this.radTrackBarValue.BackColor          = Color.Transparent;
     this.radTrackBarValue.LargeTickFrequency = 100;
     this.radTrackBarValue.Location           = new Point(3, 37);
     this.radTrackBarValue.Margin             = new Padding(3, 0, 3, 0);
     this.radTrackBarValue.Maximum            = 100f;
     this.radTrackBarValue.Name               = "radTrackBarValue";
     this.radTrackBarValue.Size               = new Size(140, 34);
     this.radTrackBarValue.SmallTickFrequency = 0;
     this.radTrackBarValue.TabIndex           = 1;
     this.radSpinEditorValue.Anchor           = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorValue.Location         = new Point(149, 44);
     this.radSpinEditorValue.Margin           = new Padding(3, 0, 3, 0);
     this.radSpinEditorValue.Name             = "radSpinEditorValue";
     this.radSpinEditorValue.Size             = new Size(140, 20);
     this.radSpinEditorValue.TabIndex         = 2;
     this.radSpinEditorValue.TabStop          = false;
     this.radButtonReset.Anchor               = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location             = new Point(179, 84);
     this.radButtonReset.Name                 = "radButtonReset";
     this.radButtonReset.Size                 = new Size(110, 23);
     this.radButtonReset.TabIndex             = 3;
     this.radButtonReset.Text                 = "Reset";
     this.AutoScaleDimensions                 = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 90);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.Name            = nameof(SharpenDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon = false;
     this.Text     = "Sharpen";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelAmount.EndInit();
     this.radTrackBarValue.EndInit();
     this.radSpinEditorValue.EndInit();
     this.radButtonReset.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #8
0
        private void cfb5cf413352ed4044535eb4a62d2e98f()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(Type.GetTypeFromHandle(ca7f59f7aa9ae1de5fae3e55a26e6045b.c6804baa30a51e813a45fabcfa2b27b79()));

            this.cd036f2b2868b103e71bd7b4fbe25a603 = new RadLabel();
            this.c043655c49351198d53937bceaedc9259 = new RadSpinEditor();
            this.cbf64a879ae2aa334872c401083f6135e = new RadSpinEditor();
            this.cdcac4e94628a385a08e4e7c77a84487c = new RadSpinEditor();
            this.c4f7923b753673b9ed6ba494072ddfc60 = new RadSpinEditor();
            this.c3768da1c9e17b9980d03acca3e5a19a9 = new RadButton();
            ((ISupportInitialize)this.cd036f2b2868b103e71bd7b4fbe25a603).BeginInit();
            ((ISupportInitialize)this.c043655c49351198d53937bceaedc9259).BeginInit();
            ((ISupportInitialize)this.cbf64a879ae2aa334872c401083f6135e).BeginInit();
            ((ISupportInitialize)this.cdcac4e94628a385a08e4e7c77a84487c).BeginInit();
            ((ISupportInitialize)this.c4f7923b753673b9ed6ba494072ddfc60).BeginInit();
            ((ISupportInitialize)this.c3768da1c9e17b9980d03acca3e5a19a9).BeginInit();
            ((ISupportInitialize)this).BeginInit();
            ((RadFormControlBase)this).SuspendLayout();
            ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10488), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10492));
            ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7428);
            ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10496), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10500));
            ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10504);
            ((Control)this.cd036f2b2868b103e71bd7b4fbe25a603).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16517);
            ((Control)this.c043655c49351198d53937bceaedc9259).Font     = new Font(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7400), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10508), (FontStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10512), (GraphicsUnit)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10516), (byte)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10520));
            ((Control)this.c043655c49351198d53937bceaedc9259).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10524), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10528));
            RadSpinEditor c043655c49351198d53937bceaedc9259_1 = this.c043655c49351198d53937bceaedc9259;

            int[] bits1  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10532));
            int   index1 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10536);
            int   num1   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10540);

            bits1[index1] = num1;
            Decimal num2 = new Decimal(bits1);

            c043655c49351198d53937bceaedc9259_1.set_Maximum(num2);
            this.c043655c49351198d53937bceaedc9259.set_Name(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16592));
            RadSpinEditor c043655c49351198d53937bceaedc9259_2 = this.c043655c49351198d53937bceaedc9259;

            int[] bits2  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10544));
            int   index2 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10548);
            int   num3   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10552);

            bits2[index2] = num3;
            Decimal?nullable1 = new Decimal?(new Decimal(bits2));

            c043655c49351198d53937bceaedc9259_2.set_NullableValue(nullable1);
            ((Control)this.c043655c49351198d53937bceaedc9259).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10556), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10560));
            ((Control)this.c043655c49351198d53937bceaedc9259).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10564);
            ((Control)this.c043655c49351198d53937bceaedc9259).TabStop  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10568) != 0;
            RadSpinEditor c043655c49351198d53937bceaedc9259_3 = this.c043655c49351198d53937bceaedc9259;

            int[] bits3  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10572));
            int   index3 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10576);
            int   num4   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10580);

            bits3[index3] = num4;
            Decimal num5 = new Decimal(bits3);

            c043655c49351198d53937bceaedc9259_3.set_Value(num5);
            ((Control)this.cbf64a879ae2aa334872c401083f6135e).Font     = new Font(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7400), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10584), (FontStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10588), (GraphicsUnit)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10592), (byte)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10596));
            ((Control)this.cbf64a879ae2aa334872c401083f6135e).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10600), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10604));
            RadSpinEditor cbf64a879ae2aa334872c401083f6135e1 = this.cbf64a879ae2aa334872c401083f6135e;

            int[] bits4  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10608));
            int   index4 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10612);
            int   num6   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10616);

            bits4[index4] = num6;
            Decimal num7 = new Decimal(bits4);

            cbf64a879ae2aa334872c401083f6135e1.set_Maximum(num7);
            this.cbf64a879ae2aa334872c401083f6135e.set_Name(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16599));
            RadSpinEditor cbf64a879ae2aa334872c401083f6135e2 = this.cbf64a879ae2aa334872c401083f6135e;

            int[] bits5  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10620));
            int   index5 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10624);
            int   num8   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10628);

            bits5[index5] = num8;
            Decimal?nullable2 = new Decimal?(new Decimal(bits5));

            cbf64a879ae2aa334872c401083f6135e2.set_NullableValue(nullable2);
            ((Control)this.cbf64a879ae2aa334872c401083f6135e).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10632), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10636));
            ((Control)this.cbf64a879ae2aa334872c401083f6135e).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10640);
            ((Control)this.cbf64a879ae2aa334872c401083f6135e).TabStop  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10644) != 0;
            RadSpinEditor cbf64a879ae2aa334872c401083f6135e3 = this.cbf64a879ae2aa334872c401083f6135e;

            int[] bits6  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10648));
            int   index6 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10652);
            int   num9   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10656);

            bits6[index6] = num9;
            Decimal num10 = new Decimal(bits6);

            cbf64a879ae2aa334872c401083f6135e3.set_Value(num10);
            ((Control)this.cdcac4e94628a385a08e4e7c77a84487c).Font     = new Font(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7400), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10660), (FontStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10664), (GraphicsUnit)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10668), (byte)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10672));
            ((Control)this.cdcac4e94628a385a08e4e7c77a84487c).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10676), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10680));
            RadSpinEditor cdcac4e94628a385a08e4e7c77a84487c1 = this.cdcac4e94628a385a08e4e7c77a84487c;

            int[] bits7  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10684));
            int   index7 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10688);
            int   num11  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10692);

            bits7[index7] = num11;
            Decimal num12 = new Decimal(bits7);

            cdcac4e94628a385a08e4e7c77a84487c1.set_Maximum(num12);
            this.cdcac4e94628a385a08e4e7c77a84487c.set_Name(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16606));
            RadSpinEditor cdcac4e94628a385a08e4e7c77a84487c2 = this.cdcac4e94628a385a08e4e7c77a84487c;

            int[] bits8  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10696));
            int   index8 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10700);
            int   num13  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10704);

            bits8[index8] = num13;
            Decimal?nullable3 = new Decimal?(new Decimal(bits8));

            cdcac4e94628a385a08e4e7c77a84487c2.set_NullableValue(nullable3);
            ((Control)this.cdcac4e94628a385a08e4e7c77a84487c).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10708), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10712));
            ((Control)this.cdcac4e94628a385a08e4e7c77a84487c).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10716);
            ((Control)this.cdcac4e94628a385a08e4e7c77a84487c).TabStop  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10720) != 0;
            RadSpinEditor cdcac4e94628a385a08e4e7c77a84487c3 = this.cdcac4e94628a385a08e4e7c77a84487c;

            int[] bits9  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10724));
            int   index9 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10728);
            int   num14  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10732);

            bits9[index9] = num14;
            Decimal num15 = new Decimal(bits9);

            cdcac4e94628a385a08e4e7c77a84487c3.set_Value(num15);
            ((Control)this.c4f7923b753673b9ed6ba494072ddfc60).Font     = new Font(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7400), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10736), (FontStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10740), (GraphicsUnit)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10744), (byte)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10748));
            ((Control)this.c4f7923b753673b9ed6ba494072ddfc60).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10752), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10756));
            RadSpinEditor c4f7923b753673b9ed6ba494072ddfc60 = this.c4f7923b753673b9ed6ba494072ddfc60;

            int[] bits10  = c6ef0b4086a9ddbe24e2ddab8d4b99374.c27c941905305b0ff3e7324bc79625bf4(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10760));
            int   index10 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10764);
            int   num16   = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10768);

            bits10[index10] = num16;
            Decimal num17 = new Decimal(bits10);

            c4f7923b753673b9ed6ba494072ddfc60.set_Maximum(num17);
            this.c4f7923b753673b9ed6ba494072ddfc60.set_Name(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16613));
            ((Control)this.c4f7923b753673b9ed6ba494072ddfc60).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10772), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10776));
            ((Control)this.c4f7923b753673b9ed6ba494072ddfc60).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10780);
            ((Control)this.c4f7923b753673b9ed6ba494072ddfc60).TabStop  = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10784) != 0;
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Location = new Point(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10788), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10792));
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Name     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7473);
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Size     = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10796), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10800));
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).TabIndex = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10804);
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Text     = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(14002);
            ((Control)this.c3768da1c9e17b9980d03acca3e5a19a9).Click   += new EventHandler(this.cd3ea5f6f49b3d27138c3508cc5d825bb);
            ((ContainerControl)this).AutoScaleDimensions = new SizeF(cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10808), cb85779efa5f9c78fa841b92dceca9094.c8c83a3807da60b9f032d40f2b5665e27(10812));
            ((RadFormControlBase)this).set_AutoScaleMode((AutoScaleMode)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10816));
            ((Form)this).ClientSize = new Size(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10820), cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10824));
            ((Control)this).Controls.Add((Control)this.c3768da1c9e17b9980d03acca3e5a19a9);
            ((Control)this).Controls.Add((Control)this.c4f7923b753673b9ed6ba494072ddfc60);
            ((Control)this).Controls.Add((Control)this.cdcac4e94628a385a08e4e7c77a84487c);
            ((Control)this).Controls.Add((Control)this.cbf64a879ae2aa334872c401083f6135e);
            ((Control)this).Controls.Add((Control)this.c043655c49351198d53937bceaedc9259);
            ((Control)this).Controls.Add((Control)this.cd036f2b2868b103e71bd7b4fbe25a603);
            ((RadFormControlBase)this).set_FormBorderStyle((FormBorderStyle)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10828));
            ((Form)this).Icon    = cead0b4edd540ba7cac4363706aa68fb6.cc8e287d5350b43026d33bb80beb131a0(componentResourceManager.GetObject(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(7256)));
            ((Control)this).Name = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16620);
            ((RadFormControlBase)this).get_RootElement().set_ApplyShapeToControl(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10832) != 0);
            this.set_ShowIcon(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10836) != 0);
            ((Form)this).StartPosition = (FormStartPosition)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10840);
            ((Control)this).Text       = c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(16631);
            ((Form)this).FormClosing  += new FormClosingEventHandler(this.c86d4f48c6888f128ea89c29edc8a9aec);
            ((Form)this).Load         += new EventHandler(this.c5a9236f6f28eb5fdcc94a3cc9e0add54);
            ((ISupportInitialize)this.cd036f2b2868b103e71bd7b4fbe25a603).EndInit();
            ((ISupportInitialize)this.c043655c49351198d53937bceaedc9259).EndInit();
            ((ISupportInitialize)this.cbf64a879ae2aa334872c401083f6135e).EndInit();
            ((ISupportInitialize)this.cdcac4e94628a385a08e4e7c77a84487c).EndInit();
            ((ISupportInitialize)this.c4f7923b753673b9ed6ba494072ddfc60).EndInit();
            ((ISupportInitialize)this.c3768da1c9e17b9980d03acca3e5a19a9).EndInit();
            ((ISupportInitialize)this).EndInit();
            ((RadFormControlBase)this).ResumeLayout(cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(10844) != 0);
            ((Control)this).PerformLayout();
        }
Пример #9
0
 private void InitializeComponent()
 {
     this.radioL            = new RadRadioButton();
     this.radioH            = new RadRadioButton();
     this.radioB            = new RadRadioButton();
     this.radioG            = new RadRadioButton();
     this.radioS            = new RadRadioButton();
     this.radioR            = new RadRadioButton();
     this.numHue            = new RadSpinEditor();
     this.numSaturation     = new RadSpinEditor();
     this.numLuminance      = new RadSpinEditor();
     this.label1            = new RadLabel();
     this.numAlpha          = new RadSpinEditor();
     this.numRed            = new RadSpinEditor();
     this.numGreen          = new RadSpinEditor();
     this.numBlue           = new RadSpinEditor();
     this.proColorsSlider1  = new ProfessionalColorsSlider();
     this.proColors2DBox1   = new ProfessionalColors2DBox();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.radioL.BeginInit();
     this.radioH.BeginInit();
     this.radioB.BeginInit();
     this.radioG.BeginInit();
     this.radioS.BeginInit();
     this.radioR.BeginInit();
     this.numHue.BeginInit();
     this.numSaturation.BeginInit();
     this.numLuminance.BeginInit();
     this.label1.BeginInit();
     this.numAlpha.BeginInit();
     this.numRed.BeginInit();
     this.numGreen.BeginInit();
     this.numBlue.BeginInit();
     this.tableLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     this.radioL.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioL.AutoSize            = false;
     this.radioL.Location            = new Point(260, 180);
     this.radioL.Margin              = new Padding(0);
     this.radioL.Name                = "radioL";
     this.radioL.Size                = new Size(40, 30);
     this.radioL.TabIndex            = 41;
     this.radioL.Text                = "L:";
     this.radioL.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioH.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioH.AutoSize            = false;
     this.radioH.CheckState          = CheckState.Checked;
     this.radioH.Location            = new Point(260, 120);
     this.radioH.Margin              = new Padding(0);
     this.radioH.Name                = "radioH";
     this.radioH.Size                = new Size(40, 30);
     this.radioH.TabIndex            = 39;
     this.radioH.Text                = "H:";
     this.radioH.ToggleState         = Telerik.WinControls.Enumerations.ToggleState.On;
     this.radioH.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioB.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioB.AutoSize            = false;
     this.radioB.Location            = new Point(260, 60);
     this.radioB.Margin              = new Padding(0);
     this.radioB.Name                = "radioB";
     this.radioB.Size                = new Size(40, 30);
     this.radioB.TabIndex            = 38;
     this.radioB.Text                = "B:";
     this.radioB.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioG.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioG.AutoSize            = false;
     this.radioG.Location            = new Point(260, 30);
     this.radioG.Margin              = new Padding(0);
     this.radioG.Name                = "radioG";
     this.radioG.Size                = new Size(40, 30);
     this.radioG.TabIndex            = 37;
     this.radioG.Text                = "G:";
     this.radioG.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioS.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioS.AutoSize            = false;
     this.radioS.Location            = new Point(260, 150);
     this.radioS.Margin              = new Padding(0);
     this.radioS.Name                = "radioS";
     this.radioS.Size                = new Size(40, 30);
     this.radioS.TabIndex            = 40;
     this.radioS.Text                = "S:";
     this.radioS.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.radioR.Anchor              = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radioR.AutoSize            = false;
     this.radioR.Location            = new Point(260, 0);
     this.radioR.Margin              = new Padding(0);
     this.radioR.Name                = "radioR";
     this.radioR.Size                = new Size(40, 30);
     this.radioR.TabIndex            = 36;
     this.radioR.Text                = "R:";
     this.radioR.ToggleStateChanged += new StateChangedEventHandler(this.colorModeChanged);
     this.numHue.Anchor              = AnchorStyles.Left | AnchorStyles.Right;
     this.numHue.Location            = new Point(306, 125);
     this.numHue.Margin              = new Padding(6, 0, 6, 0);
     this.numHue.Maximum             = new Decimal(new int[4]
     {
         360,
         0,
         0,
         0
     });
     this.numHue.Name = "numHue";
     this.numHue.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numHue.Size            = new Size(58, 20);
     this.numHue.TabIndex        = 46;
     this.numHue.TabStop         = false;
     this.numHue.ThemeName       = "TelerikMetro";
     this.numHue.ValueChanged   += new EventHandler(this.numHue_ValueChanged);
     this.numHue.TextChanged    += new EventHandler(this.numHue_TextChanged);
     this.numSaturation.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.numSaturation.Location = new Point(306, 155);
     this.numSaturation.Margin   = new Padding(6, 0, 6, 0);
     this.numSaturation.Name     = "numSaturation";
     this.numSaturation.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numSaturation.Size                    = new Size(58, 20);
     this.numSaturation.TabIndex                = 47;
     this.numSaturation.TabStop                 = false;
     this.numSaturation.ThemeName               = "TelerikMetro";
     this.numSaturation.ValueChanged           += new EventHandler(this.numSaturation_ValueChanged);
     this.numSaturation.TextChanged            += new EventHandler(this.numSaturation_TextChanged);
     this.numLuminance.Anchor                   = AnchorStyles.Left | AnchorStyles.Right;
     this.numLuminance.Location                 = new Point(306, 185);
     this.numLuminance.Margin                   = new Padding(6, 0, 6, 0);
     this.numLuminance.Name                     = "numLuminance";
     this.numLuminance.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numLuminance.Size                     = new Size(58, 20);
     this.numLuminance.TabIndex                 = 48;
     this.numLuminance.TabStop                  = false;
     this.numLuminance.ThemeName                = "TelerikMetro";
     this.numLuminance.ValueChanged            += new EventHandler(this.numLuminance_ValueChanged);
     this.numLuminance.TextChanged             += new EventHandler(this.numLuminance_TextChanged);
     this.label1.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.label1.AutoSize   = false;
     this.label1.Location   = new Point(260, 90);
     this.label1.Margin     = new Padding(0);
     this.label1.Name       = "label1";
     this.label1.Padding    = new Padding(15, 0, 0, 0);
     this.label1.Size       = new Size(40, 30);
     this.label1.TabIndex   = 50;
     this.label1.TabStop    = true;
     this.label1.Text       = "A:";
     this.numAlpha.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.numAlpha.Location = new Point(306, 95);
     this.numAlpha.Margin   = new Padding(6, 0, 6, 0);
     this.numAlpha.Maximum  = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numAlpha.Name          = "numAlpha";
     this.numAlpha.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     }));
     this.numAlpha.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numAlpha.Size      = new Size(58, 20);
     this.numAlpha.TabIndex  = 45;
     this.numAlpha.TabStop   = false;
     this.numAlpha.ThemeName = "TelerikMetro";
     this.numAlpha.Value     = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numAlpha.ValueChanged += new EventHandler(this.numAlpha_ValueChanged);
     this.numAlpha.TextChanged  += new EventHandler(this.numAlpha_TextChanged);
     this.numRed.Anchor          = AnchorStyles.Left | AnchorStyles.Right;
     this.numRed.Location        = new Point(306, 5);
     this.numRed.Margin          = new Padding(6, 0, 6, 0);
     this.numRed.Maximum         = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numRed.Name = "numRed";
     this.numRed.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numRed.Size          = new Size(58, 20);
     this.numRed.TabIndex      = 42;
     this.numRed.TabStop       = false;
     this.numRed.ThemeName     = "TelerikMetro";
     this.numRed.ValueChanged += new EventHandler(this.numRed_ValueChanged);
     this.numRed.TextChanged  += new EventHandler(this.numRed_TextChanged);
     this.numGreen.Anchor      = AnchorStyles.Left | AnchorStyles.Right;
     this.numGreen.Location    = new Point(306, 35);
     this.numGreen.Margin      = new Padding(6, 0, 6, 0);
     this.numGreen.Maximum     = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numGreen.Name = "numGreen";
     this.numGreen.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numGreen.Size          = new Size(58, 20);
     this.numGreen.TabIndex      = 43;
     this.numGreen.TabStop       = false;
     this.numGreen.ThemeName     = "TelerikMetro";
     this.numGreen.ValueChanged += new EventHandler(this.numGreen_ValueChanged);
     this.numGreen.TextChanged  += new EventHandler(this.numGreen_TextChanged);
     this.numBlue.Anchor         = AnchorStyles.Left | AnchorStyles.Right;
     this.numBlue.Location       = new Point(306, 65);
     this.numBlue.Margin         = new Padding(6, 0, 6, 0);
     this.numBlue.Maximum        = new Decimal(new int[4]
     {
         (int)byte.MaxValue,
         0,
         0,
         0
     });
     this.numBlue.Name = "numBlue";
     this.numBlue.RootElement.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
     this.numBlue.Size               = new Size(58, 20);
     this.numBlue.TabIndex           = 44;
     this.numBlue.TabStop            = false;
     this.numBlue.ThemeName          = "TelerikMetro";
     this.numBlue.ValueChanged      += new EventHandler(this.numBlue_ValueChanged);
     this.numBlue.TextChanged       += new EventHandler(this.numBlue_TextChanged);
     this.proColorsSlider1.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom;
     this.proColorsSlider1.ColorHSL  = HslColor.FromAhsl(0.0, 1.0, 1.0);
     this.proColorsSlider1.ColorMode = ColorModes.Red;
     this.proColorsSlider1.ColorRGB  = Color.FromArgb((int)byte.MaxValue, 0, 0);
     this.proColorsSlider1.Location  = new Point(214, 3);
     this.proColorsSlider1.Name      = "proColorsSlider1";
     this.proColorsSlider1.Position  = 0;
     this.tableLayoutPanel1.SetRowSpan((Control)this.proColorsSlider1, 8);
     this.proColorsSlider1.Size     = new Size(41, 217);
     this.proColorsSlider1.TabIndex = 51;
     this.proColors2DBox1.Anchor    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.proColors2DBox1.ColorHSL  = HslColor.Empty;
     this.proColors2DBox1.ColorMode = ColorModes.Red;
     this.proColors2DBox1.ColorRGB  = Color.Empty;
     this.proColors2DBox1.Location  = new Point(6, 6);
     this.proColors2DBox1.Margin    = new Padding(6, 6, 0, 6);
     this.proColors2DBox1.Name      = "proColors2DBox1";
     this.tableLayoutPanel1.SetRowSpan((Control)this.proColors2DBox1, 8);
     this.proColors2DBox1.Size          = new Size(204, 211);
     this.proColors2DBox1.TabIndex      = 49;
     this.tableLayoutPanel1.ColumnCount = 4;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 70f));
     this.tableLayoutPanel1.Controls.Add((Control)this.proColors2DBox1, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.numRed, 3, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.numHue, 3, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioH, 2, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.numBlue, 3, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.numSaturation, 3, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.numGreen, 3, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioS, 2, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.numAlpha, 3, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioL, 2, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.numLuminance, 3, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.proColorsSlider1, 1, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioR, 2, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioG, 2, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radioB, 2, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.label1, 2, 3);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 8;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
     this.tableLayoutPanel1.Size     = new Size(370, 223);
     this.tableLayoutPanel1.TabIndex = 52;
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.Name = nameof(ProfessionalColors);
     this.Size = new Size(370, 223);
     this.radioL.EndInit();
     this.radioH.EndInit();
     this.radioB.EndInit();
     this.radioG.EndInit();
     this.radioS.EndInit();
     this.radioR.EndInit();
     this.numHue.EndInit();
     this.numSaturation.EndInit();
     this.numLuminance.EndInit();
     this.label1.EndInit();
     this.numAlpha.EndInit();
     this.numRed.EndInit();
     this.numGreen.EndInit();
     this.numBlue.EndInit();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #10
0
        private void radDataEntry_EditorInitializing(object sender, EditorInitializingEventArgs e)
        {
            if (radDataEntry.DataSource is Address)
            {
                if (e.Property.Name == "StateProvince")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DataSource    = MainRepository.StatesCache;
                    radDropDownList1.ValueMember   = "StateProvinceID";
                    radDropDownList1.DisplayMember = "FullName";
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is PurchaseOrderHeader)
            {
                var purchaseOrder = this.radDataEntry.DataSource as PurchaseOrderHeader;

                if (e.Property.Name == "OrderStatus")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DataSource    = purchaseOrder.OrderStatuses;
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "ShipMethod")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.ShipMethodsCache;
                    radDropDownList1.ValueMember   = "ShipMethodID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "Vendor")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.VendorsCache;
                    radDropDownList1.ValueMember   = "BusinessEntityID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is Customer)
            {
                if (e.Property.Name == "State")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.StatesCache;
                    radDropDownList1.ValueMember   = "StateProvinceID";
                    radDropDownList1.DisplayMember = "FullName";
                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is BillOfMaterial)
            {
                if (e.Property.Name == "UnitMeasure")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.UnitMeasuresCache;
                    radDropDownList1.ValueMember   = "UnitMeasureCode";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "Product1")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.ProductsCache.ToList();
                    radDropDownList1.ValueMember   = "ProductID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "Product")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.ProductsCache.ToList();
                    radDropDownList1.ValueMember   = "ProductID";
                    radDropDownList1.DisplayMember = "Name";

                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is ProductInventory)
            {
                if (e.Property.Name == "Product")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.ProductsCache;
                    radDropDownList1.ValueMember   = "ProductID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "Color")
                {
                    e.Editor = new RadColorBox();
                }
                else if (e.Property.Name == "Location")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.LocationsCache;
                    radDropDownList1.ValueMember   = "LocationID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is SalesOrderHeader)
            {
                var order = radDataEntry.DataSource as SalesOrderHeader;

                if (e.Property.Name == "Customer")
                {
                    var customers     = MainRepository.TopCustomersCache;
                    var orderCustomer = order.Customer;
                    if (orderCustomer != null && !customers.Contains(orderCustomer))
                    {
                        customers.Insert(0, orderCustomer);
                    }

                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = customers;
                    radDropDownList1.ValueMember   = "CustomerID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
                else if (e.Property.Name == "ShipMethod")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DataSource    = MainRepository.ShipMethodsCache;
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.ValueMember   = "ShipMethodID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
            }
            else if (radDataEntry.DataSource is Vendor)
            {
                if (e.Property.Name == "CreditRating")
                {
                    var editor = new RadSpinEditor();
                    editor.Maximum = 5;
                    editor.Minimum = 0;
                    e.Editor       = editor;
                }
            }
            else if (radDataEntry.DataSource is WorkOrder)
            {
                if (e.Property.Name == "Product")
                {
                    var radDropDownList1 = new RadDropDownList();
                    radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    radDropDownList1.DataSource    = MainRepository.ProductsCache;
                    radDropDownList1.ValueMember   = "ProductID";
                    radDropDownList1.DisplayMember = "Name";
                    e.Editor = radDropDownList1;
                }
            }
        }
Пример #11
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1  = new TableLayoutPanel();
     this.radLabelBrushSize  = new RadLabel();
     this.radSpinEditorSize  = new RadSpinEditor();
     this.radColorBoxColor   = new RadColorBox();
     this.radLabelBrushColor = new RadLabel();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelBrushSize.BeginInit();
     this.radSpinEditorSize.BeginInit();
     this.radColorBoxColor.BeginInit();
     this.radLabelBrushColor.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBrushSize, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorSize, 1, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxColor, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBrushColor, 0, 1);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 2;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Size     = new Size(292, 76);
     this.tableLayoutPanel1.TabIndex = 0;
     this.radLabelBrushSize.Anchor   = AnchorStyles.Left;
     this.radLabelBrushSize.Location = new Point(3, 10);
     this.radLabelBrushSize.Name     = "radLabelBrushSize";
     this.radLabelBrushSize.Size     = new Size(57, 18);
     this.radLabelBrushSize.TabIndex = 0;
     this.radLabelBrushSize.Text     = "Brush Size";
     this.radSpinEditorSize.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorSize.Location = new Point(149, 9);
     this.radSpinEditorSize.Margin   = new Padding(3, 0, 3, 0);
     this.radSpinEditorSize.Maximum  = new Decimal(new int[4]
     {
         1000,
         0,
         0,
         0
     });
     this.radSpinEditorSize.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorSize.Name          = "radSpinEditorSize";
     this.radSpinEditorSize.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorSize.Size     = new Size(140, 20);
     this.radSpinEditorSize.TabIndex = 1;
     this.radSpinEditorSize.TabStop  = false;
     this.radSpinEditorSize.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radColorBoxColor.Anchor     = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxColor.Location   = new Point(149, 47);
     this.radColorBoxColor.Margin     = new Padding(3, 0, 3, 0);
     this.radColorBoxColor.Name       = "radColorBoxColor";
     this.radColorBoxColor.Size       = new Size(140, 20);
     this.radColorBoxColor.TabIndex   = 2;
     this.radColorBoxColor.Value      = Color.Black;
     this.radLabelBrushColor.Anchor   = AnchorStyles.Left;
     this.radLabelBrushColor.Location = new Point(3, 48);
     this.radLabelBrushColor.Name     = "radLabelBrushColor";
     this.radLabelBrushColor.Size     = new Size(64, 18);
     this.radLabelBrushColor.TabIndex = 0;
     this.radLabelBrushColor.Text     = "Brush Color";
     this.AutoScaleDimensions         = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 56);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(DrawDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = "Draw";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelBrushSize.EndInit();
     this.radSpinEditorSize.EndInit();
     this.radColorBoxColor.EndInit();
     this.radLabelBrushColor.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #12
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1            = new TableLayoutPanel();
     this.radLabelRadius               = new RadLabel();
     this.radLabelBackground           = new RadLabel();
     this.radLabelBorderThickness      = new RadLabel();
     this.radLabelBorderColor          = new RadLabel();
     this.radTrackBarRadius            = new RadTrackBar();
     this.radTrackBarBorderThickness   = new RadTrackBar();
     this.radSpinEditorRadius          = new RadSpinEditor();
     this.radSpinEditorBorderThickness = new RadSpinEditor();
     this.radColorBoxBackground        = new RadColorBox();
     this.radColorBoxBorderColor       = new RadColorBox();
     this.radButtonReset               = new RadButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelRadius.BeginInit();
     this.radLabelBackground.BeginInit();
     this.radLabelBorderThickness.BeginInit();
     this.radLabelBorderColor.BeginInit();
     this.radTrackBarRadius.BeginInit();
     this.radTrackBarBorderThickness.BeginInit();
     this.radSpinEditorRadius.BeginInit();
     this.radSpinEditorBorderThickness.BeginInit();
     this.radColorBoxBackground.BeginInit();
     this.radColorBoxBorderColor.BeginInit();
     this.radButtonReset.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelRadius, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBackground, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBorderThickness, 0, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBorderColor, 0, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarRadius, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarBorderThickness, 0, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorRadius, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorBorderThickness, 1, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxBackground, 1, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxBorderColor, 1, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 6);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 7;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 14.28571f));
     this.tableLayoutPanel1.Size                        = new Size(292, 266);
     this.tableLayoutPanel1.TabIndex                    = 0;
     this.radLabelRadius.Anchor                         = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radLabelRadius.AutoSize                       = false;
     this.radLabelRadius.Location                       = new Point(3, 9);
     this.radLabelRadius.Name                           = "radLabelRadius";
     this.radLabelRadius.Size                           = new Size(39, 18);
     this.radLabelRadius.TabIndex                       = 0;
     this.radLabelRadius.Text                           = "Radius";
     this.radLabelBackground.Anchor                     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radLabelBackground.AutoSize                   = false;
     this.radLabelBackground.Location                   = new Point(3, 77);
     this.radLabelBackground.Name                       = "radLabelBackground";
     this.radLabelBackground.Size                       = new Size(68, 18);
     this.radLabelBackground.TabIndex                   = 0;
     this.radLabelBackground.Text                       = "Background:";
     this.radLabelBorderThickness.Anchor                = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radLabelBorderThickness.AutoSize              = false;
     this.radLabelBorderThickness.Location              = new Point(3, 120);
     this.radLabelBorderThickness.Name                  = "radLabelBorderThickness";
     this.radLabelBorderThickness.Size                  = new Size(93, 18);
     this.radLabelBorderThickness.TabIndex              = 0;
     this.radLabelBorderThickness.Text                  = "Border Thickness:";
     this.radLabelBorderColor.Anchor                    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radLabelBorderColor.AutoSize                  = false;
     this.radLabelBorderColor.Location                  = new Point(3, 188);
     this.radLabelBorderColor.Name                      = "radLabelBorderColor";
     this.radLabelBorderColor.Size                      = new Size(72, 18);
     this.radLabelBorderColor.TabIndex                  = 0;
     this.radLabelBorderColor.Text                      = "Border Color:";
     this.radTrackBarRadius.BackColor                   = Color.Transparent;
     this.radTrackBarRadius.LargeTickFrequency          = 100;
     this.radTrackBarRadius.Location                    = new Point(3, 37);
     this.radTrackBarRadius.Margin                      = new Padding(3, 0, 3, 0);
     this.radTrackBarRadius.Maximum                     = 100f;
     this.radTrackBarRadius.Name                        = "radTrackBarRadius";
     this.radTrackBarRadius.Size                        = new Size(140, 16);
     this.radTrackBarRadius.SmallTickFrequency          = 0;
     this.radTrackBarRadius.TabIndex                    = 1;
     this.radTrackBarBorderThickness.BackColor          = Color.Transparent;
     this.radTrackBarBorderThickness.LargeTickFrequency = 100;
     this.radTrackBarBorderThickness.Location           = new Point(3, 148);
     this.radTrackBarBorderThickness.Margin             = new Padding(3, 0, 3, 0);
     this.radTrackBarBorderThickness.Maximum            = 100f;
     this.radTrackBarBorderThickness.Name               = "radTrackBarBorderThickness";
     this.radTrackBarBorderThickness.Size               = new Size(140, 16);
     this.radTrackBarBorderThickness.SmallTickFrequency = 0;
     this.radTrackBarBorderThickness.TabIndex           = 1;
     this.radSpinEditorRadius.Anchor                    = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorRadius.Location                  = new Point(149, 37);
     this.radSpinEditorRadius.Margin                    = new Padding(3, 0, 3, 0);
     this.radSpinEditorRadius.Name                      = "radSpinEditorRadius";
     this.radSpinEditorRadius.Size                      = new Size(140, 20);
     this.radSpinEditorRadius.TabIndex                  = 2;
     this.radSpinEditorRadius.TabStop                   = false;
     this.radSpinEditorBorderThickness.Anchor           = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorBorderThickness.Location         = new Point(149, 148);
     this.radSpinEditorBorderThickness.Margin           = new Padding(3, 0, 3, 0);
     this.radSpinEditorBorderThickness.Name             = "radSpinEditorBorderThickness";
     this.radSpinEditorBorderThickness.Size             = new Size(140, 20);
     this.radSpinEditorBorderThickness.TabIndex         = 2;
     this.radSpinEditorBorderThickness.TabStop          = false;
     this.radColorBoxBackground.Anchor                  = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxBackground.Location                = new Point(149, 74);
     this.radColorBoxBackground.Margin                  = new Padding(3, 0, 3, 0);
     this.radColorBoxBackground.Name                    = "radColorBoxBackground";
     this.radColorBoxBackground.Size                    = new Size(140, 20);
     this.radColorBoxBackground.TabIndex                = 3;
     this.radColorBoxBackground.Value                   = Color.White;
     this.radColorBoxBorderColor.Anchor                 = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxBorderColor.Location               = new Point(149, 185);
     this.radColorBoxBorderColor.Margin                 = new Padding(3, 0, 3, 0);
     this.radColorBoxBorderColor.Name                   = "radColorBoxBorderColor";
     this.radColorBoxBorderColor.Size                   = new Size(140, 20);
     this.radColorBoxBorderColor.TabIndex               = 3;
     this.radColorBoxBorderColor.Value                  = Color.White;
     this.radButtonReset.Anchor                         = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location                       = new Point(179, 239);
     this.radButtonReset.Name                           = "radButtonReset";
     this.radButtonReset.Size                           = new Size(110, 24);
     this.radButtonReset.TabIndex                       = 4;
     this.radButtonReset.Text                           = "Reset";
     this.AutoScaleDimensions                           = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 266);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(RoundCornersDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = "Round Corners";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelRadius.EndInit();
     this.radLabelBackground.EndInit();
     this.radLabelBorderThickness.EndInit();
     this.radLabelBorderColor.EndInit();
     this.radTrackBarRadius.EndInit();
     this.radTrackBarBorderThickness.EndInit();
     this.radSpinEditorRadius.EndInit();
     this.radSpinEditorBorderThickness.EndInit();
     this.radColorBoxBackground.EndInit();
     this.radColorBoxBorderColor.EndInit();
     this.radButtonReset.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #13
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1       = new TableLayoutPanel();
     this.radLabelContrast        = new RadLabel();
     this.radTrackBarBrightness   = new RadTrackBar();
     this.radTrackBarContrast     = new RadTrackBar();
     this.radSpinEditorBrightness = new RadSpinEditor();
     this.radSpinEditorContrast   = new RadSpinEditor();
     this.radButtonReset          = new RadButton();
     this.radLabelBrightness      = new RadLabel();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelContrast.BeginInit();
     this.radTrackBarBrightness.BeginInit();
     this.radTrackBarContrast.BeginInit();
     this.radSpinEditorBrightness.BeginInit();
     this.radSpinEditorContrast.BeginInit();
     this.radButtonReset.BeginInit();
     this.radLabelBrightness.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelContrast, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarBrightness, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarContrast, 0, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorBrightness, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorContrast, 1, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBrightness, 0, 0);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 5;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
     this.tableLayoutPanel1.Size                   = new Size(292, 181);
     this.tableLayoutPanel1.TabIndex               = 0;
     this.radLabelContrast.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelContrast.Location                = new Point(3, 87);
     this.radLabelContrast.Name                    = "radLabelContrast";
     this.radLabelContrast.Size                    = new Size(48, 18);
     this.radLabelContrast.TabIndex                = 1;
     this.radLabelContrast.Text                    = "Contrast";
     this.radTrackBarBrightness.BackColor          = Color.Transparent;
     this.radTrackBarBrightness.LargeTickFrequency = 200;
     this.radTrackBarBrightness.Location           = new Point(3, 36);
     this.radTrackBarBrightness.Margin             = new Padding(3, 0, 3, 0);
     this.radTrackBarBrightness.Maximum            = 200f;
     this.radTrackBarBrightness.Name               = "radTrackBarBrightness";
     this.radTrackBarBrightness.Size               = new Size(140, 36);
     this.radTrackBarBrightness.SmallTickFrequency = 0;
     this.radTrackBarBrightness.TabIndex           = 2;
     this.radTrackBarBrightness.Value              = 100f;
     this.radTrackBarContrast.BackColor            = Color.Transparent;
     this.radTrackBarContrast.LargeTickFrequency   = 50;
     this.radTrackBarContrast.Location             = new Point(3, 108);
     this.radTrackBarContrast.Margin               = new Padding(3, 0, 3, 0);
     this.radTrackBarContrast.Maximum              = 200f;
     this.radTrackBarContrast.Name                 = "radTrackBarContrast";
     this.radTrackBarContrast.Size                 = new Size(140, 36);
     this.radTrackBarContrast.SmallTickFrequency   = 10;
     this.radTrackBarContrast.TabIndex             = 3;
     this.radTrackBarContrast.Value                = 100f;
     this.radSpinEditorBrightness.Anchor           = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorBrightness.Location         = new Point(149, 44);
     this.radSpinEditorBrightness.Margin           = new Padding(3, 0, 3, 0);
     this.radSpinEditorBrightness.Minimum          = new Decimal(new int[4]
     {
         100,
         0,
         0,
         int.MinValue
     });
     this.radSpinEditorBrightness.Name     = "radSpinEditorBrightness";
     this.radSpinEditorBrightness.Size     = new Size(140, 20);
     this.radSpinEditorBrightness.TabIndex = 4;
     this.radSpinEditorBrightness.TabStop  = false;
     this.radSpinEditorContrast.Anchor     = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorContrast.Location   = new Point(149, 116);
     this.radSpinEditorContrast.Margin     = new Padding(3, 0, 3, 0);
     this.radSpinEditorContrast.Minimum    = new Decimal(new int[4]
     {
         100,
         0,
         0,
         int.MinValue
     });
     this.radSpinEditorContrast.Name     = "radSpinEditorContrast";
     this.radSpinEditorContrast.Size     = new Size(140, 20);
     this.radSpinEditorContrast.TabIndex = 5;
     this.radSpinEditorContrast.TabStop  = false;
     this.radButtonReset.Anchor          = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location        = new Point(179, 154);
     this.radButtonReset.Name            = "radButtonReset";
     this.radButtonReset.Size            = new Size(110, 24);
     this.radButtonReset.TabIndex        = 6;
     this.radButtonReset.Text            = "Reset";
     this.radLabelBrightness.Anchor      = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelBrightness.Location    = new Point(3, 15);
     this.radLabelBrightness.Name        = "radLabelBrightness";
     this.radLabelBrightness.Size        = new Size(58, 18);
     this.radLabelBrightness.TabIndex    = 0;
     this.radLabelBrightness.Text        = "Brightness";
     this.AutoScaleDimensions            = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 160);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(ContrastDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = "Contrast";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelContrast.EndInit();
     this.radTrackBarBrightness.EndInit();
     this.radTrackBarContrast.EndInit();
     this.radSpinEditorBrightness.EndInit();
     this.radSpinEditorContrast.EndInit();
     this.radButtonReset.EndInit();
     this.radLabelBrightness.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #14
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1           = new TableLayoutPanel();
     this.radLabelCanvasSize          = new RadLabel();
     this.radLabelWidth               = new RadLabel();
     this.radLabelHeight              = new RadLabel();
     this.radLabelImageAlignment      = new RadLabel();
     this.radLabelBackground          = new RadLabel();
     this.radButtonReset              = new RadButton();
     this.radColorBoxBackground       = new RadColorBox();
     this.radSpinEditorWidth          = new RadSpinEditor();
     this.radSpinEditorHeight         = new RadSpinEditor();
     this.tableLayoutPanel2           = new TableLayoutPanel();
     this.radToggleButtonTopLeft      = new RadToggleButton();
     this.radToggleButtonTopCenter    = new RadToggleButton();
     this.radToggleButtonTopRight     = new RadToggleButton();
     this.radToggleButtonMiddleRight  = new RadToggleButton();
     this.radToggleButtonMiddleCenter = new RadToggleButton();
     this.radToggleButtonMiddleLeft   = new RadToggleButton();
     this.radToggleButtonBottomLeft   = new RadToggleButton();
     this.radToggleButtonBottomCenter = new RadToggleButton();
     this.radToggleButtonBottomRight  = new RadToggleButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelCanvasSize.BeginInit();
     this.radLabelWidth.BeginInit();
     this.radLabelHeight.BeginInit();
     this.radLabelImageAlignment.BeginInit();
     this.radLabelBackground.BeginInit();
     this.radButtonReset.BeginInit();
     this.radColorBoxBackground.BeginInit();
     this.radSpinEditorWidth.BeginInit();
     this.radSpinEditorHeight.BeginInit();
     this.tableLayoutPanel2.SuspendLayout();
     this.radToggleButtonTopLeft.BeginInit();
     this.radToggleButtonTopCenter.BeginInit();
     this.radToggleButtonTopRight.BeginInit();
     this.radToggleButtonMiddleRight.BeginInit();
     this.radToggleButtonMiddleCenter.BeginInit();
     this.radToggleButtonMiddleLeft.BeginInit();
     this.radToggleButtonBottomLeft.BeginInit();
     this.radToggleButtonBottomCenter.BeginInit();
     this.radToggleButtonBottomRight.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelCanvasSize, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelWidth, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelHeight, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelImageAlignment, 0, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBackground, 0, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxBackground, 1, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorWidth, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorHeight, 1, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.tableLayoutPanel2, 0, 4);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 7;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 39.57114f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.07148f));
     this.tableLayoutPanel1.Size          = new Size(292, 368);
     this.tableLayoutPanel1.TabIndex      = 0;
     this.radLabelCanvasSize.Anchor       = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelCanvasSize.Location     = new Point(3, 16);
     this.radLabelCanvasSize.Name         = "radLabelCanvasSize";
     this.radLabelCanvasSize.Size         = new Size(67, 18);
     this.radLabelCanvasSize.TabIndex     = 0;
     this.radLabelCanvasSize.Text         = "Canvas Size:";
     this.radLabelWidth.Anchor            = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelWidth.Location          = new Point(3, 53);
     this.radLabelWidth.Name              = "radLabelWidth";
     this.radLabelWidth.Size              = new Size(39, 18);
     this.radLabelWidth.TabIndex          = 0;
     this.radLabelWidth.Text              = "Width:";
     this.radLabelHeight.Anchor           = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelHeight.Location         = new Point(149, 53);
     this.radLabelHeight.Name             = "radLabelHeight";
     this.radLabelHeight.Size             = new Size(42, 18);
     this.radLabelHeight.TabIndex         = 0;
     this.radLabelHeight.Text             = "Height:";
     this.radLabelImageAlignment.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelImageAlignment.Location = new Point(3, (int)sbyte.MaxValue);
     this.radLabelImageAlignment.Name     = "radLabelImageAlignment";
     this.radLabelImageAlignment.Size     = new Size(92, 18);
     this.radLabelImageAlignment.TabIndex = 0;
     this.radLabelImageAlignment.Text     = "Image Alignment";
     this.radLabelBackground.Anchor       = AnchorStyles.Left;
     this.radLabelBackground.Location     = new Point(3, 302);
     this.radLabelBackground.Name         = "radLabelBackground";
     this.radLabelBackground.Size         = new Size(68, 18);
     this.radLabelBackground.TabIndex     = 0;
     this.radLabelBackground.Text         = "Background:";
     this.radButtonReset.Anchor           = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location         = new Point(179, 341);
     this.radButtonReset.Name             = "radButtonReset";
     this.radButtonReset.Size             = new Size(110, 24);
     this.radButtonReset.TabIndex         = 1;
     this.radButtonReset.Text             = "Reset";
     this.radColorBoxBackground.Anchor    = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxBackground.Location  = new Point(149, 301);
     this.radColorBoxBackground.Margin    = new Padding(3, 0, 3, 0);
     this.radColorBoxBackground.Name      = "radColorBoxBackground";
     this.radColorBoxBackground.Size      = new Size(140, 20);
     this.radColorBoxBackground.TabIndex  = 2;
     this.radColorBoxBackground.Value     = Color.Black;
     this.radSpinEditorWidth.Anchor       = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorWidth.Location     = new Point(3, 82);
     this.radSpinEditorWidth.Margin       = new Padding(3, 0, 3, 0);
     this.radSpinEditorWidth.Maximum      = new Decimal(new int[4]
     {
         (int)short.MaxValue,
         0,
         0,
         0
     });
     this.radSpinEditorWidth.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorWidth.Name          = "radSpinEditorWidth";
     this.radSpinEditorWidth.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorWidth.Size     = new Size(140, 20);
     this.radSpinEditorWidth.TabIndex = 3;
     this.radSpinEditorWidth.TabStop  = false;
     this.radSpinEditorWidth.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorHeight.Location = new Point(149, 82);
     this.radSpinEditorHeight.Margin   = new Padding(3, 0, 3, 0);
     this.radSpinEditorHeight.Maximum  = new Decimal(new int[4]
     {
         (int)short.MaxValue,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Name          = "radSpinEditorHeight";
     this.radSpinEditorHeight.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorHeight.Size     = new Size(140, 20);
     this.radSpinEditorHeight.TabIndex = 3;
     this.radSpinEditorHeight.TabStop  = false;
     this.radSpinEditorHeight.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.tableLayoutPanel2.Anchor      = AnchorStyles.None;
     this.tableLayoutPanel2.ColumnCount = 3;
     this.tableLayoutPanel1.SetColumnSpan((Control)this.tableLayoutPanel2, 2);
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonTopLeft, 0, 0);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonTopCenter, 1, 0);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonTopRight, 2, 0);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonMiddleRight, 2, 1);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonMiddleCenter, 1, 1);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonMiddleLeft, 0, 1);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonBottomLeft, 0, 2);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonBottomCenter, 1, 2);
     this.tableLayoutPanel2.Controls.Add((Control)this.radToggleButtonBottomRight, 2, 2);
     this.tableLayoutPanel2.Location = new Point(81, 155);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 3;
     this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel2.Size                  = new Size(130, 130);
     this.tableLayoutPanel2.TabIndex              = 4;
     this.radToggleButtonTopLeft.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonTopLeft.Location         = new Point(3, 3);
     this.radToggleButtonTopLeft.Name             = "radToggleButtonTopLeft";
     this.radToggleButtonTopLeft.Size             = new Size(37, 37);
     this.radToggleButtonTopLeft.TabIndex         = 0;
     this.radToggleButtonTopCenter.Anchor         = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonTopCenter.Location       = new Point(46, 3);
     this.radToggleButtonTopCenter.Name           = "radToggleButtonTopCenter";
     this.radToggleButtonTopCenter.Size           = new Size(37, 37);
     this.radToggleButtonTopCenter.TabIndex       = 0;
     this.radToggleButtonTopRight.Anchor          = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonTopRight.Location        = new Point(89, 3);
     this.radToggleButtonTopRight.Name            = "radToggleButtonTopRight";
     this.radToggleButtonTopRight.Size            = new Size(38, 37);
     this.radToggleButtonTopRight.TabIndex        = 0;
     this.radToggleButtonMiddleRight.Anchor       = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonMiddleRight.Location     = new Point(89, 46);
     this.radToggleButtonMiddleRight.Name         = "radToggleButtonMiddleRight";
     this.radToggleButtonMiddleRight.Size         = new Size(38, 37);
     this.radToggleButtonMiddleRight.TabIndex     = 0;
     this.radToggleButtonMiddleCenter.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonMiddleCenter.CheckState  = CheckState.Checked;
     this.radToggleButtonMiddleCenter.Location    = new Point(46, 46);
     this.radToggleButtonMiddleCenter.Name        = "radToggleButtonMiddleCenter";
     this.radToggleButtonMiddleCenter.Size        = new Size(37, 37);
     this.radToggleButtonMiddleCenter.TabIndex    = 0;
     this.radToggleButtonMiddleCenter.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On;
     this.radToggleButtonMiddleLeft.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonMiddleLeft.Location      = new Point(3, 46);
     this.radToggleButtonMiddleLeft.Name          = "radToggleButtonMiddleLeft";
     this.radToggleButtonMiddleLeft.Size          = new Size(37, 37);
     this.radToggleButtonMiddleLeft.TabIndex      = 0;
     this.radToggleButtonBottomLeft.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonBottomLeft.Location      = new Point(3, 89);
     this.radToggleButtonBottomLeft.Name          = "radToggleButtonBottomLeft";
     this.radToggleButtonBottomLeft.Size          = new Size(37, 38);
     this.radToggleButtonBottomLeft.TabIndex      = 0;
     this.radToggleButtonBottomCenter.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonBottomCenter.Location    = new Point(46, 89);
     this.radToggleButtonBottomCenter.Name        = "radToggleButtonBottomCenter";
     this.radToggleButtonBottomCenter.Size        = new Size(37, 38);
     this.radToggleButtonBottomCenter.TabIndex    = 0;
     this.radToggleButtonBottomRight.Anchor       = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radToggleButtonBottomRight.Location     = new Point(89, 89);
     this.radToggleButtonBottomRight.Name         = "radToggleButtonBottomRight";
     this.radToggleButtonBottomRight.Size         = new Size(38, 38);
     this.radToggleButtonBottomRight.TabIndex     = 0;
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.ClientSize          = new Size(292, 368);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(ResizeCanvasDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = nameof(ResizeCanvasDialog);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelCanvasSize.EndInit();
     this.radLabelWidth.EndInit();
     this.radLabelHeight.EndInit();
     this.radLabelImageAlignment.EndInit();
     this.radLabelBackground.EndInit();
     this.radButtonReset.EndInit();
     this.radColorBoxBackground.EndInit();
     this.radSpinEditorWidth.EndInit();
     this.radSpinEditorHeight.EndInit();
     this.tableLayoutPanel2.ResumeLayout(false);
     this.radToggleButtonTopLeft.EndInit();
     this.radToggleButtonTopCenter.EndInit();
     this.radToggleButtonTopRight.EndInit();
     this.radToggleButtonMiddleRight.EndInit();
     this.radToggleButtonMiddleCenter.EndInit();
     this.radToggleButtonMiddleLeft.EndInit();
     this.radToggleButtonBottomLeft.EndInit();
     this.radToggleButtonBottomCenter.EndInit();
     this.radToggleButtonBottomRight.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #15
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1  = new TableLayoutPanel();
     this.radLabelHueShift   = new RadLabel();
     this.radTrackBarShift   = new RadTrackBar();
     this.radSpinEditorShift = new RadSpinEditor();
     this.radButtonReset     = new RadButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelHueShift.BeginInit();
     this.radTrackBarShift.BeginInit();
     this.radSpinEditorShift.BeginInit();
     this.radButtonReset.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelHueShift, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarShift, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorShift, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 2);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 3;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f));
     this.tableLayoutPanel1.Size              = new Size(300, 110);
     this.tableLayoutPanel1.TabIndex          = 0;
     this.radLabelHueShift.Anchor             = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelHueShift.Location           = new Point(3, 15);
     this.radLabelHueShift.Name               = "radLabelHueShift";
     this.radLabelHueShift.Size               = new Size(52, 18);
     this.radLabelHueShift.TabIndex           = 0;
     this.radLabelHueShift.Text               = "Hue Shift";
     this.radTrackBarShift.BackColor          = Color.Transparent;
     this.radTrackBarShift.LargeTickFrequency = 360;
     this.radTrackBarShift.Location           = new Point(3, 37);
     this.radTrackBarShift.Margin             = new Padding(3, 0, 3, 0);
     this.radTrackBarShift.Maximum            = 360f;
     this.radTrackBarShift.Name               = "radTrackBarShift";
     this.radTrackBarShift.Size               = new Size(144, 34);
     this.radTrackBarShift.SmallTickFrequency = 0;
     this.radTrackBarShift.TabIndex           = 1;
     this.radSpinEditorShift.Anchor           = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorShift.Location         = new Point(153, 44);
     this.radSpinEditorShift.Margin           = new Padding(3, 0, 3, 0);
     this.radSpinEditorShift.Maximum          = new Decimal(new int[4]
     {
         360,
         0,
         0,
         0
     });
     this.radSpinEditorShift.Name     = "radSpinEditorShift";
     this.radSpinEditorShift.Size     = new Size(144, 20);
     this.radSpinEditorShift.TabIndex = 2;
     this.radSpinEditorShift.TabStop  = false;
     this.radButtonReset.Anchor       = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location     = new Point(187, 83);
     this.radButtonReset.Name         = "radButtonReset";
     this.radButtonReset.Size         = new Size(110, 24);
     this.radButtonReset.TabIndex     = 3;
     this.radButtonReset.Text         = "Reset";
     this.AutoScaleDimensions         = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 90);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(HueShiftDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = "Hue Shift";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelHueShift.EndInit();
     this.radTrackBarShift.EndInit();
     this.radSpinEditorShift.EndInit();
     this.radButtonReset.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #16
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1               = new TableLayoutPanel();
     this.radLabelText                    = new RadLabel();
     this.radLabelFontSize                = new RadLabel();
     this.radLabelTextColor               = new RadLabel();
     this.radLabelHorizontalPosition      = new RadLabel();
     this.radLabelVerticalPosition        = new RadLabel();
     this.radLabelRotation                = new RadLabel();
     this.radSpinEditorFontSize           = new RadSpinEditor();
     this.radSpinEditorHorizontalPosition = new RadSpinEditor();
     this.radSpinEditorVerticalPosition   = new RadSpinEditor();
     this.radSpinEditorRotation           = new RadSpinEditor();
     this.radColorBoxTextColor            = new RadColorBox();
     this.radButtonReset                  = new RadButton();
     this.radTextBoxText                  = new RadTextBox();
     this.radTrackBarFontSize             = new RadTrackBar();
     this.radTrackBarHorizontalPosition   = new RadTrackBar();
     this.radTrackBarVerticalPosition     = new RadTrackBar();
     this.radTrackBarRotation             = new RadTrackBar();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelText.BeginInit();
     this.radLabelFontSize.BeginInit();
     this.radLabelTextColor.BeginInit();
     this.radLabelHorizontalPosition.BeginInit();
     this.radLabelVerticalPosition.BeginInit();
     this.radLabelRotation.BeginInit();
     this.radSpinEditorFontSize.BeginInit();
     this.radSpinEditorHorizontalPosition.BeginInit();
     this.radSpinEditorVerticalPosition.BeginInit();
     this.radSpinEditorRotation.BeginInit();
     this.radColorBoxTextColor.BeginInit();
     this.radButtonReset.BeginInit();
     this.radTextBoxText.BeginInit();
     this.radTrackBarFontSize.BeginInit();
     this.radTrackBarHorizontalPosition.BeginInit();
     this.radTrackBarVerticalPosition.BeginInit();
     this.radTrackBarRotation.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelText, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelFontSize, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelTextColor, 0, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelHorizontalPosition, 0, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelVerticalPosition, 0, 7);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelRotation, 0, 9);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorFontSize, 1, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorHorizontalPosition, 1, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorVerticalPosition, 1, 8);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorRotation, 1, 10);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxTextColor, 1, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 11);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTextBoxText, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarFontSize, 0, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarHorizontalPosition, 0, 6);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarVerticalPosition, 0, 8);
     this.tableLayoutPanel1.Controls.Add((Control)this.radTrackBarRotation, 0, 10);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 12;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333333f));
     this.tableLayoutPanel1.Size              = new Size(292, 456);
     this.tableLayoutPanel1.TabIndex          = 0;
     this.radLabelText.Anchor                 = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelText.Location               = new Point(3, 16);
     this.radLabelText.Name                   = "radLabelText";
     this.radLabelText.Size                   = new Size(27, 18);
     this.radLabelText.TabIndex               = 0;
     this.radLabelText.Text                   = "Text";
     this.radLabelFontSize.Anchor             = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelFontSize.Location           = new Point(3, 90);
     this.radLabelFontSize.Name               = "radLabelFontSize";
     this.radLabelFontSize.Size               = new Size(50, 18);
     this.radLabelFontSize.TabIndex           = 0;
     this.radLabelFontSize.Text               = "Font size";
     this.radLabelTextColor.Anchor            = AnchorStyles.Left;
     this.radLabelTextColor.Location          = new Point(3, 157);
     this.radLabelTextColor.Name              = "radLabelTextColor";
     this.radLabelTextColor.Size              = new Size(140, 18);
     this.radLabelTextColor.TabIndex          = 0;
     this.radLabelTextColor.Text              = "Text Color";
     this.radLabelHorizontalPosition.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelHorizontalPosition.Location = new Point(3, 201);
     this.radLabelHorizontalPosition.Name     = "radLabelHorizontalPosition";
     this.radLabelHorizontalPosition.Size     = new Size(101, 18);
     this.radLabelHorizontalPosition.TabIndex = 0;
     this.radLabelHorizontalPosition.Text     = "Horizontal Position";
     this.radLabelVerticalPosition.Anchor     = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelVerticalPosition.Location   = new Point(3, 275);
     this.radLabelVerticalPosition.Name       = "radLabelVerticalPosition";
     this.radLabelVerticalPosition.Size       = new Size(87, 18);
     this.radLabelVerticalPosition.TabIndex   = 0;
     this.radLabelVerticalPosition.Text       = "Vertical Position";
     this.radLabelRotation.Anchor             = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelRotation.Location           = new Point(3, 349);
     this.radLabelRotation.Name               = "radLabelRotation";
     this.radLabelRotation.Size               = new Size(49, 18);
     this.radLabelRotation.TabIndex           = 0;
     this.radLabelRotation.Text               = "Rotation";
     this.radSpinEditorFontSize.Anchor        = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorFontSize.Location      = new Point(149, 119);
     this.radSpinEditorFontSize.Margin        = new Padding(3, 0, 3, 0);
     this.radSpinEditorFontSize.Minimum       = new Decimal(new int[4]
     {
         5,
         0,
         0,
         0
     });
     this.radSpinEditorFontSize.Name          = "radSpinEditorFontSize";
     this.radSpinEditorFontSize.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         36,
         0,
         0,
         0
     }));
     this.radSpinEditorFontSize.Size     = new Size(140, 20);
     this.radSpinEditorFontSize.TabIndex = 2;
     this.radSpinEditorFontSize.TabStop  = false;
     this.radSpinEditorFontSize.Value    = new Decimal(new int[4]
     {
         36,
         0,
         0,
         0
     });
     this.radSpinEditorHorizontalPosition.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorHorizontalPosition.Location = new Point(149, 230);
     this.radSpinEditorHorizontalPosition.Margin   = new Padding(3, 0, 3, 0);
     this.radSpinEditorHorizontalPosition.Name     = "radSpinEditorHorizontalPosition";
     this.radSpinEditorHorizontalPosition.Size     = new Size(140, 20);
     this.radSpinEditorHorizontalPosition.TabIndex = 2;
     this.radSpinEditorHorizontalPosition.TabStop  = false;
     this.radSpinEditorVerticalPosition.Anchor     = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorVerticalPosition.Location   = new Point(149, 304);
     this.radSpinEditorVerticalPosition.Margin     = new Padding(3, 0, 3, 0);
     this.radSpinEditorVerticalPosition.Name       = "radSpinEditorVerticalPosition";
     this.radSpinEditorVerticalPosition.Size       = new Size(140, 20);
     this.radSpinEditorVerticalPosition.TabIndex   = 2;
     this.radSpinEditorVerticalPosition.TabStop    = false;
     this.radSpinEditorRotation.Anchor             = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorRotation.Location           = new Point(149, 378);
     this.radSpinEditorRotation.Margin             = new Padding(3, 0, 3, 0);
     this.radSpinEditorRotation.Maximum            = new Decimal(new int[4]
     {
         360,
         0,
         0,
         0
     });
     this.radSpinEditorRotation.Name                       = "radSpinEditorRotation";
     this.radSpinEditorRotation.Size                       = new Size(140, 20);
     this.radSpinEditorRotation.TabIndex                   = 2;
     this.radSpinEditorRotation.TabStop                    = false;
     this.radColorBoxTextColor.Anchor                      = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxTextColor.Location                    = new Point(149, 156);
     this.radColorBoxTextColor.Margin                      = new Padding(3, 0, 3, 0);
     this.radColorBoxTextColor.Name                        = "radColorBoxTextColor";
     this.radColorBoxTextColor.Size                        = new Size(140, 20);
     this.radColorBoxTextColor.TabIndex                    = 3;
     this.radColorBoxTextColor.Value                       = Color.Black;
     this.radButtonReset.Anchor                            = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location                          = new Point(179, 429);
     this.radButtonReset.Name                              = "radButtonReset";
     this.radButtonReset.Size                              = new Size(110, 24);
     this.radButtonReset.TabIndex                          = 4;
     this.radButtonReset.Text                              = "Reset";
     this.radTextBoxText.Anchor                            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radTextBoxText.Location                          = new Point(3, 45);
     this.radTextBoxText.Margin                            = new Padding(3, 0, 3, 0);
     this.radTextBoxText.Name                              = "radTextBoxText";
     this.radTextBoxText.NullText                          = "Your text here...";
     this.radTextBoxText.Size                              = new Size(140, 20);
     this.radTextBoxText.TabIndex                          = 5;
     this.radTrackBarFontSize.BackColor                    = Color.Transparent;
     this.radTrackBarFontSize.Location                     = new Point(3, 111);
     this.radTrackBarFontSize.Margin                       = new Padding(3, 0, 3, 0);
     this.radTrackBarFontSize.Maximum                      = 100f;
     this.radTrackBarFontSize.Minimum                      = 5f;
     this.radTrackBarFontSize.Name                         = "radTrackBarFontSize";
     this.radTrackBarFontSize.Size                         = new Size(140, 37);
     this.radTrackBarFontSize.SmallTickFrequency           = 0;
     this.radTrackBarFontSize.TabIndex                     = 1;
     this.radTrackBarFontSize.Value                        = 36f;
     this.radTrackBarHorizontalPosition.BackColor          = Color.Transparent;
     this.radTrackBarHorizontalPosition.Location           = new Point(3, 222);
     this.radTrackBarHorizontalPosition.Margin             = new Padding(3, 0, 3, 0);
     this.radTrackBarHorizontalPosition.Maximum            = 100f;
     this.radTrackBarHorizontalPosition.Name               = "radTrackBarHorizontalPosition";
     this.radTrackBarHorizontalPosition.Size               = new Size(140, 37);
     this.radTrackBarHorizontalPosition.SmallTickFrequency = 0;
     this.radTrackBarHorizontalPosition.TabIndex           = 1;
     this.radTrackBarVerticalPosition.BackColor            = Color.Transparent;
     this.radTrackBarVerticalPosition.Location             = new Point(3, 296);
     this.radTrackBarVerticalPosition.Margin               = new Padding(3, 0, 3, 0);
     this.radTrackBarVerticalPosition.Maximum              = 100f;
     this.radTrackBarVerticalPosition.Name                 = "radTrackBarVerticalPosition";
     this.radTrackBarVerticalPosition.Size                 = new Size(140, 37);
     this.radTrackBarVerticalPosition.SmallTickFrequency   = 0;
     this.radTrackBarVerticalPosition.TabIndex             = 1;
     this.radTrackBarRotation.BackColor                    = Color.Transparent;
     this.radTrackBarRotation.LargeTickFrequency           = 20;
     this.radTrackBarRotation.Location                     = new Point(3, 370);
     this.radTrackBarRotation.Margin                       = new Padding(3, 0, 3, 0);
     this.radTrackBarRotation.Maximum                      = 360f;
     this.radTrackBarRotation.Name                         = "radTrackBarRotation";
     this.radTrackBarRotation.Size                         = new Size(140, 37);
     this.radTrackBarRotation.SmallTickFrequency           = 0;
     this.radTrackBarRotation.TabIndex                     = 1;
     this.AutoScaleDimensions                              = new SizeF(6f, 13f);
     this.AutoScaleMode = AutoScaleMode.Font;
     this.ClientSize    = new Size(292, 456);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(DrawTextDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = nameof(DrawTextDialog);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelText.EndInit();
     this.radLabelFontSize.EndInit();
     this.radLabelTextColor.EndInit();
     this.radLabelHorizontalPosition.EndInit();
     this.radLabelVerticalPosition.EndInit();
     this.radLabelRotation.EndInit();
     this.radSpinEditorFontSize.EndInit();
     this.radSpinEditorHorizontalPosition.EndInit();
     this.radSpinEditorVerticalPosition.EndInit();
     this.radSpinEditorRotation.EndInit();
     this.radColorBoxTextColor.EndInit();
     this.radButtonReset.EndInit();
     this.radTextBoxText.EndInit();
     this.radTrackBarFontSize.EndInit();
     this.radTrackBarHorizontalPosition.EndInit();
     this.radTrackBarVerticalPosition.EndInit();
     this.radTrackBarRotation.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #17
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1           = new TableLayoutPanel();
     this.radLabelImageSize           = new RadLabel();
     this.radLabelWidth               = new RadLabel();
     this.radLabelHeight              = new RadLabel();
     this.radLabelRelativeSize        = new RadLabel();
     this.radLabelRelativeWidth       = new RadLabel();
     this.radLabelRelativeHeight      = new RadLabel();
     this.radSpinEditorWidth          = new RadSpinEditor();
     this.radSpinEditorHeight         = new RadSpinEditor();
     this.radSpinEditorRelativeWidth  = new RadSpinEditor();
     this.radSpinEditorRelativeHeight = new RadSpinEditor();
     this.radButtonReset              = new RadButton();
     this.radCheckBoxAspectRation     = new RadCheckBox();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelImageSize.BeginInit();
     this.radLabelWidth.BeginInit();
     this.radLabelHeight.BeginInit();
     this.radLabelRelativeSize.BeginInit();
     this.radLabelRelativeWidth.BeginInit();
     this.radLabelRelativeHeight.BeginInit();
     this.radSpinEditorWidth.BeginInit();
     this.radSpinEditorHeight.BeginInit();
     this.radSpinEditorRelativeWidth.BeginInit();
     this.radSpinEditorRelativeHeight.BeginInit();
     this.radButtonReset.BeginInit();
     this.radCheckBoxAspectRation.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelImageSize, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelWidth, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelHeight, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelRelativeSize, 0, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelRelativeWidth, 0, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelRelativeHeight, 1, 4);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorWidth, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorHeight, 1, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorRelativeWidth, 0, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorRelativeHeight, 1, 5);
     this.tableLayoutPanel1.Controls.Add((Control)this.radButtonReset, 1, 7);
     this.tableLayoutPanel1.Controls.Add((Control)this.radCheckBoxAspectRation, 0, 6);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 8;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 12.5f));
     this.tableLayoutPanel1.Size          = new Size(292, 251);
     this.tableLayoutPanel1.TabIndex      = 0;
     this.radLabelImageSize.Anchor        = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelImageSize.Location      = new Point(3, 10);
     this.radLabelImageSize.Name          = "radLabelImageSize";
     this.radLabelImageSize.Size          = new Size(82, 18);
     this.radLabelImageSize.TabIndex      = 0;
     this.radLabelImageSize.Text          = "Image Size (px)";
     this.radLabelWidth.Anchor            = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelWidth.Location          = new Point(3, 41);
     this.radLabelWidth.Name              = "radLabelWidth";
     this.radLabelWidth.Size              = new Size(39, 18);
     this.radLabelWidth.TabIndex          = 0;
     this.radLabelWidth.Text              = "Width:";
     this.radLabelHeight.Anchor           = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelHeight.Location         = new Point(149, 41);
     this.radLabelHeight.Name             = "radLabelHeight";
     this.radLabelHeight.Size             = new Size(42, 18);
     this.radLabelHeight.TabIndex         = 0;
     this.radLabelHeight.Text             = "Height:";
     this.radLabelRelativeSize.Anchor     = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelRelativeSize.Location   = new Point(3, 103);
     this.radLabelRelativeSize.Name       = "radLabelRelativeSize";
     this.radLabelRelativeSize.Size       = new Size(87, 18);
     this.radLabelRelativeSize.TabIndex   = 0;
     this.radLabelRelativeSize.Text       = "Relative Size (%)";
     this.radLabelRelativeWidth.Anchor    = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelRelativeWidth.Location  = new Point(3, 134);
     this.radLabelRelativeWidth.Name      = "radLabelRelativeWidth";
     this.radLabelRelativeWidth.Size      = new Size(39, 18);
     this.radLabelRelativeWidth.TabIndex  = 0;
     this.radLabelRelativeWidth.Text      = "Width:";
     this.radLabelRelativeHeight.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.radLabelRelativeHeight.Location = new Point(149, 134);
     this.radLabelRelativeHeight.Name     = "radLabelRelativeHeight";
     this.radLabelRelativeHeight.Size     = new Size(42, 18);
     this.radLabelRelativeHeight.TabIndex = 0;
     this.radLabelRelativeHeight.Text     = "Height:";
     this.radSpinEditorWidth.Anchor       = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorWidth.Location     = new Point(3, 67);
     this.radSpinEditorWidth.Margin       = new Padding(3, 0, 3, 0);
     this.radSpinEditorWidth.Maximum      = new Decimal(new int[4]
     {
         (int)short.MaxValue,
         0,
         0,
         0
     });
     this.radSpinEditorWidth.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorWidth.Name          = "radSpinEditorWidth";
     this.radSpinEditorWidth.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorWidth.Size     = new Size(140, 20);
     this.radSpinEditorWidth.TabIndex = 2;
     this.radSpinEditorWidth.TabStop  = false;
     this.radSpinEditorWidth.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorHeight.Location = new Point(149, 67);
     this.radSpinEditorHeight.Margin   = new Padding(3, 0, 3, 0);
     this.radSpinEditorHeight.Maximum  = new Decimal(new int[4]
     {
         (int)short.MaxValue,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorHeight.Name          = "radSpinEditorHeight";
     this.radSpinEditorHeight.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorHeight.Size     = new Size(140, 20);
     this.radSpinEditorHeight.TabIndex = 2;
     this.radSpinEditorHeight.TabStop  = false;
     this.radSpinEditorHeight.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorRelativeWidth.Anchor        = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorRelativeWidth.DecimalPlaces = 2;
     this.radSpinEditorRelativeWidth.Location      = new Point(3, 160);
     this.radSpinEditorRelativeWidth.Margin        = new Padding(3, 0, 3, 0);
     this.radSpinEditorRelativeWidth.Maximum       = new Decimal(new int[4]
     {
         1000,
         0,
         0,
         0
     });
     this.radSpinEditorRelativeWidth.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     });
     this.radSpinEditorRelativeWidth.Name          = "radSpinEditorRelativeWidth";
     this.radSpinEditorRelativeWidth.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     }));
     this.radSpinEditorRelativeWidth.Size     = new Size(140, 20);
     this.radSpinEditorRelativeWidth.TabIndex = 2;
     this.radSpinEditorRelativeWidth.TabStop  = false;
     this.radSpinEditorRelativeWidth.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     });
     this.radSpinEditorRelativeHeight.Anchor        = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorRelativeHeight.DecimalPlaces = 2;
     this.radSpinEditorRelativeHeight.Location      = new Point(149, 160);
     this.radSpinEditorRelativeHeight.Margin        = new Padding(3, 0, 3, 0);
     this.radSpinEditorRelativeHeight.Maximum       = new Decimal(new int[4]
     {
         1000,
         0,
         0,
         0
     });
     this.radSpinEditorRelativeHeight.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     });
     this.radSpinEditorRelativeHeight.Name          = "radSpinEditorRelativeHeight";
     this.radSpinEditorRelativeHeight.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     }));
     this.radSpinEditorRelativeHeight.Size     = new Size(140, 20);
     this.radSpinEditorRelativeHeight.TabIndex = 2;
     this.radSpinEditorRelativeHeight.TabStop  = false;
     this.radSpinEditorRelativeHeight.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         262144
     });
     this.radButtonReset.Anchor          = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonReset.Location        = new Point(179, 224);
     this.radButtonReset.Name            = "radButtonReset";
     this.radButtonReset.Size            = new Size(110, 24);
     this.radButtonReset.TabIndex        = 1;
     this.radButtonReset.Text            = "Reset";
     this.radCheckBoxAspectRation.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
     this.tableLayoutPanel1.SetColumnSpan((Control)this.radCheckBoxAspectRation, 2);
     this.radCheckBoxAspectRation.Location = new Point(3, 199);
     this.radCheckBoxAspectRation.Margin   = new Padding(3, 0, 3, 0);
     this.radCheckBoxAspectRation.Name     = "radCheckBoxAspectRation";
     this.radCheckBoxAspectRation.Size     = new Size(128, 18);
     this.radCheckBoxAspectRation.TabIndex = 3;
     this.radCheckBoxAspectRation.Text     = "Preserve Aspect Ratio";
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.ClientSize          = new Size(292, 251);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(ResizeDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = nameof(ResizeDialog);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelImageSize.EndInit();
     this.radLabelWidth.EndInit();
     this.radLabelHeight.EndInit();
     this.radLabelRelativeSize.EndInit();
     this.radLabelRelativeWidth.EndInit();
     this.radLabelRelativeHeight.EndInit();
     this.radSpinEditorWidth.EndInit();
     this.radSpinEditorHeight.EndInit();
     this.radSpinEditorRelativeWidth.EndInit();
     this.radSpinEditorRelativeHeight.EndInit();
     this.radButtonReset.EndInit();
     this.radCheckBoxAspectRation.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }
Пример #18
0
 private void InitializeComponent()
 {
     this.tableLayoutPanel1            = new TableLayoutPanel();
     this.radLabelShape                = new RadLabel();
     this.radLabelBorderThickness      = new RadLabel();
     this.radLabelBorderColor          = new RadLabel();
     this.radColorBoxFill              = new RadColorBox();
     this.radColorBoxBorder            = new RadColorBox();
     this.radSpinEditorBorderThickness = new RadSpinEditor();
     this.radDropDownListShape         = new RadDropDownList();
     this.radLabelShapeFill            = new RadLabel();
     this.tableLayoutPanel1.SuspendLayout();
     this.radLabelShape.BeginInit();
     this.radLabelBorderThickness.BeginInit();
     this.radLabelBorderColor.BeginInit();
     this.radColorBoxFill.BeginInit();
     this.radColorBoxBorder.BeginInit();
     this.radSpinEditorBorderThickness.BeginInit();
     this.radDropDownListShape.BeginInit();
     this.radLabelShapeFill.BeginInit();
     this.BeginInit();
     this.SuspendLayout();
     this.tableLayoutPanel1.ColumnCount = 2;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelShape, 0, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBorderThickness, 0, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxFill, 1, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radColorBoxBorder, 1, 3);
     this.tableLayoutPanel1.Controls.Add((Control)this.radSpinEditorBorderThickness, 1, 2);
     this.tableLayoutPanel1.Controls.Add((Control)this.radDropDownListShape, 1, 0);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelShapeFill, 0, 1);
     this.tableLayoutPanel1.Controls.Add((Control)this.radLabelBorderColor, 0, 3);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 4;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25f));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
     this.tableLayoutPanel1.Size                = new Size(292, 152);
     this.tableLayoutPanel1.TabIndex            = 0;
     this.radLabelShape.Anchor                  = AnchorStyles.Left;
     this.radLabelShape.Location                = new Point(3, 10);
     this.radLabelShape.Name                    = "radLabelShape";
     this.radLabelShape.Size                    = new Size(37, 18);
     this.radLabelShape.TabIndex                = 0;
     this.radLabelShape.Text                    = "Shape";
     this.radLabelBorderThickness.Anchor        = AnchorStyles.Left;
     this.radLabelBorderThickness.Location      = new Point(3, 86);
     this.radLabelBorderThickness.Name          = "radLabelBorderThickness";
     this.radLabelBorderThickness.Size          = new Size(91, 18);
     this.radLabelBorderThickness.TabIndex      = 0;
     this.radLabelBorderThickness.Text          = "Border Thickness";
     this.radLabelBorderColor.Anchor            = AnchorStyles.Left;
     this.radLabelBorderColor.Location          = new Point(3, 124);
     this.radLabelBorderColor.Name              = "radLabelBorderColor";
     this.radLabelBorderColor.Size              = new Size(70, 18);
     this.radLabelBorderColor.TabIndex          = 0;
     this.radLabelBorderColor.Text              = "Border Color";
     this.radColorBoxFill.Anchor                = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxFill.Location              = new Point(149, 47);
     this.radColorBoxFill.Margin                = new Padding(3, 0, 3, 0);
     this.radColorBoxFill.Name                  = "radColorBoxFill";
     this.radColorBoxFill.Size                  = new Size(140, 20);
     this.radColorBoxFill.TabIndex              = 3;
     this.radColorBoxFill.Value                 = Color.Transparent;
     this.radColorBoxBorder.Anchor              = AnchorStyles.Left | AnchorStyles.Right;
     this.radColorBoxBorder.Location            = new Point(149, 123);
     this.radColorBoxBorder.Margin              = new Padding(3, 0, 3, 0);
     this.radColorBoxBorder.Name                = "radColorBoxBorder";
     this.radColorBoxBorder.Size                = new Size(140, 20);
     this.radColorBoxBorder.TabIndex            = 3;
     this.radColorBoxBorder.Value               = Color.Black;
     this.radSpinEditorBorderThickness.Anchor   = AnchorStyles.Left | AnchorStyles.Right;
     this.radSpinEditorBorderThickness.Location = new Point(149, 85);
     this.radSpinEditorBorderThickness.Margin   = new Padding(3, 0, 3, 0);
     this.radSpinEditorBorderThickness.Maximum  = new Decimal(new int[4]
     {
         1000,
         0,
         0,
         0
     });
     this.radSpinEditorBorderThickness.Minimum = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radSpinEditorBorderThickness.Name          = "radSpinEditorBorderThickness";
     this.radSpinEditorBorderThickness.NullableValue = new Decimal?(new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     }));
     this.radSpinEditorBorderThickness.Size     = new Size(140, 20);
     this.radSpinEditorBorderThickness.TabIndex = 4;
     this.radSpinEditorBorderThickness.TabStop  = false;
     this.radSpinEditorBorderThickness.Value    = new Decimal(new int[4]
     {
         1,
         0,
         0,
         0
     });
     this.radDropDownListShape.Anchor        = AnchorStyles.Left | AnchorStyles.Right;
     this.radDropDownListShape.DropDownStyle = RadDropDownStyle.DropDownList;
     this.radDropDownListShape.Location      = new Point(149, 9);
     this.radDropDownListShape.Margin        = new Padding(3, 0, 3, 0);
     this.radDropDownListShape.Name          = "radDropDownListShape";
     this.radDropDownListShape.Size          = new Size(140, 20);
     this.radDropDownListShape.TabIndex      = 5;
     this.radDropDownListShape.Text          = "radDropDownList1";
     this.radLabelShapeFill.Anchor           = AnchorStyles.Left;
     this.radLabelShapeFill.Location         = new Point(3, 48);
     this.radLabelShapeFill.Name             = "radLabelShapeFill";
     this.radLabelShapeFill.Size             = new Size(54, 18);
     this.radLabelShapeFill.TabIndex         = 0;
     this.radLabelShapeFill.Text             = "Shape Fill";
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.ClientSize          = new Size(292, 132);
     this.Controls.Add((Control)this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(DrawShapeDialog);
     this.RootElement.ApplyShapeToControl = true;
     this.ShowIcon      = false;
     this.ShowInTaskbar = false;
     this.Text          = nameof(DrawShapeDialog);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.radLabelShape.EndInit();
     this.radLabelBorderThickness.EndInit();
     this.radLabelBorderColor.EndInit();
     this.radColorBoxFill.EndInit();
     this.radColorBoxBorder.EndInit();
     this.radSpinEditorBorderThickness.EndInit();
     this.radDropDownListShape.EndInit();
     this.radLabelShapeFill.EndInit();
     this.EndInit();
     this.ResumeLayout(false);
 }