Exemple #1
0
 private void method_0(ColorListPicker colorListPicker)
 {
     if (this.bool_0 || colorListPicker.SelectedColorIndex < 0)
     {
         return;
     }
     this.color_0 = ((List <WW.Cad.Model.Color>)colorListPicker.Tag)[colorListPicker.SelectedColorIndex];
     this.method_2((Control)colorListPicker);
 }
Exemple #2
0
 private void method_1(ColorListPicker colorsListPicker, List <WW.Cad.Model.Color> indexedColors)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     CadColorEditor.Class334 class334 = new CadColorEditor.Class334();
     // ISSUE: reference to a compiler-generated field
     class334.list_0 = indexedColors;
     // ISSUE: reference to a compiler-generated field
     class334.cadColorEditor_0 = this;
     // ISSUE: reference to a compiler-generated field
     colorsListPicker.ColorProviderColorCount = class334.list_0.Count;
     // ISSUE: reference to a compiler-generated method
     colorsListPicker.ColorProvider = new Func <int, System.Drawing.Color>(class334.method_0);
     // ISSUE: reference to a compiler-generated field
     colorsListPicker.Tag = (object)class334.list_0;
     // ISSUE: reference to a compiler-generated method
     colorsListPicker.ColorBoxPainter = new ColorListPicker.ColorBoxPaintDelegate(class334.method_1);
 }
Exemple #3
0
 private void InitializeComponent()
 {
     this.tabControl1                = new TabControl();
     this.indexColorTabPage          = new TabPage();
     this.indexedColorSet2ListPicker = new ColorListPicker();
     this.byBlockButton              = new Button();
     this.byLayerButton              = new Button();
     this.grayColorListPicker        = new ColorListPicker();
     this.label3 = new Label();
     this.standardColorListPicker = new ColorListPicker();
     this.label2 = new Label();
     this.label1 = new Label();
     this.indexedColorSet1ListPicker = new ColorListPicker();
     this.trueColorTabPage           = new TabPage();
     this.colorRgbEditor             = new ColorRgbEditor();
     this.colorBookColorTabPage      = new TabPage();
     this.colorNameTextBox           = new TextBox();
     this.label5 = new Label();
     this.colorBookNameTextBox = new TextBox();
     this.label4 = new Label();
     this.tabControl1.SuspendLayout();
     this.indexColorTabPage.SuspendLayout();
     this.trueColorTabPage.SuspendLayout();
     this.colorBookColorTabPage.SuspendLayout();
     this.SuspendLayout();
     this.tabControl1.Controls.Add((Control)this.indexColorTabPage);
     this.tabControl1.Controls.Add((Control)this.trueColorTabPage);
     this.tabControl1.Controls.Add((Control)this.colorBookColorTabPage);
     this.tabControl1.Dock          = DockStyle.Fill;
     this.tabControl1.Location      = new Point(0, 0);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new Size(643, 424);
     this.tabControl1.TabIndex      = 0;
     this.indexColorTabPage.Controls.Add((Control)this.indexedColorSet2ListPicker);
     this.indexColorTabPage.Controls.Add((Control)this.byBlockButton);
     this.indexColorTabPage.Controls.Add((Control)this.byLayerButton);
     this.indexColorTabPage.Controls.Add((Control)this.grayColorListPicker);
     this.indexColorTabPage.Controls.Add((Control)this.label3);
     this.indexColorTabPage.Controls.Add((Control)this.standardColorListPicker);
     this.indexColorTabPage.Controls.Add((Control)this.label2);
     this.indexColorTabPage.Controls.Add((Control)this.label1);
     this.indexColorTabPage.Controls.Add((Control)this.indexedColorSet1ListPicker);
     this.indexColorTabPage.Location = new Point(4, 22);
     this.indexColorTabPage.Name     = "indexColorTabPage";
     this.indexColorTabPage.Padding  = new Padding(3);
     this.indexColorTabPage.Size     = new Size(635, 398);
     this.indexColorTabPage.TabIndex = 0;
     this.indexColorTabPage.Text     = "Index color";
     this.indexColorTabPage.UseVisualStyleBackColor          = true;
     this.indexedColorSet2ListPicker.BackColor               = SystemColors.ControlLightLight;
     this.indexedColorSet2ListPicker.ColorBoxDistance        = new Size(18, 18);
     this.indexedColorSet2ListPicker.ColorBoxMargin          = new Size(5, 5);
     this.indexedColorSet2ListPicker.ColorBoxPainter         = (ColorListPicker.ColorBoxPaintDelegate)null;
     this.indexedColorSet2ListPicker.ColorBoxSize            = new Size(14, 14);
     this.indexedColorSet2ListPicker.ColorProvider           = (Func <int, System.Drawing.Color>)null;
     this.indexedColorSet2ListPicker.ColorProviderColorCount = 0;
     this.indexedColorSet2ListPicker.Location                   = new Point(6, 170);
     this.indexedColorSet2ListPicker.Name                       = "indexedColorSet2ListPicker";
     this.indexedColorSet2ListPicker.RowMaxColorCount           = 24;
     this.indexedColorSet2ListPicker.SelectedColorIndex         = -1;
     this.indexedColorSet2ListPicker.Size                       = new Size(624, 95);
     this.indexedColorSet2ListPicker.TabIndex                   = 8;
     this.indexedColorSet2ListPicker.Text                       = "indexedColorSet2ListPicker";
     this.indexedColorSet2ListPicker.SelectedColorIndexChanged += new EventHandler(this.indexedColorSet2ListPicker_SelectedColorIndexChanged);
     this.byBlockButton.Location = new Point(8, 347);
     this.byBlockButton.Name     = "byBlockButton";
     this.byBlockButton.Size     = new Size(75, 23);
     this.byBlockButton.TabIndex = 7;
     this.byBlockButton.Text     = "By block";
     this.byBlockButton.UseVisualStyleBackColor = true;
     this.byBlockButton.Click   += new EventHandler(this.byBlockButton_Click);
     this.byLayerButton.Location = new Point(9, 318);
     this.byLayerButton.Name     = "byLayerButton";
     this.byLayerButton.Size     = new Size(75, 23);
     this.byLayerButton.TabIndex = 6;
     this.byLayerButton.Text     = "By layer";
     this.byLayerButton.UseVisualStyleBackColor = true;
     this.byLayerButton.Click                           += new EventHandler(this.byLayerButton_Click);
     this.grayColorListPicker.BackColor                  = SystemColors.ControlLightLight;
     this.grayColorListPicker.ColorBoxDistance           = new Size(26, 26);
     this.grayColorListPicker.ColorBoxMargin             = new Size(5, 5);
     this.grayColorListPicker.ColorBoxPainter            = (ColorListPicker.ColorBoxPaintDelegate)null;
     this.grayColorListPicker.ColorBoxSize               = new Size(20, 20);
     this.grayColorListPicker.ColorProvider              = (Func <int, System.Drawing.Color>)null;
     this.grayColorListPicker.ColorProviderColorCount    = 0;
     this.grayColorListPicker.Location                   = new Point(6, 284);
     this.grayColorListPicker.Name                       = "grayColorListPicker";
     this.grayColorListPicker.RowMaxColorCount           = 0;
     this.grayColorListPicker.SelectedColorIndex         = -1;
     this.grayColorListPicker.Size                       = new Size(623, 28);
     this.grayColorListPicker.TabIndex                   = 5;
     this.grayColorListPicker.Text                       = "colorListPicker3";
     this.grayColorListPicker.SelectedColorIndexChanged += new EventHandler(this.grayColorListPicker_SelectedColorIndexChanged);
     this.label3.AutoSize = true;
     this.label3.Location = new Point(6, 268);
     this.label3.Name     = "label3";
     this.label3.Size     = new Size(37, 13);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Grays:";
     this.standardColorListPicker.BackColor               = SystemColors.ControlLightLight;
     this.standardColorListPicker.ColorBoxDistance        = new Size(26, 26);
     this.standardColorListPicker.ColorBoxMargin          = new Size(5, 5);
     this.standardColorListPicker.ColorBoxPainter         = (ColorListPicker.ColorBoxPaintDelegate)null;
     this.standardColorListPicker.ColorBoxSize            = new Size(20, 20);
     this.standardColorListPicker.ColorProvider           = (Func <int, System.Drawing.Color>)null;
     this.standardColorListPicker.ColorProviderColorCount = 0;
     this.standardColorListPicker.Location                   = new Point(6, 19);
     this.standardColorListPicker.Name                       = "standardColorListPicker";
     this.standardColorListPicker.RowMaxColorCount           = 0;
     this.standardColorListPicker.SelectedColorIndex         = -1;
     this.standardColorListPicker.Size                       = new Size(623, 28);
     this.standardColorListPicker.TabIndex                   = 3;
     this.standardColorListPicker.Text                       = "standardColorListPicker";
     this.standardColorListPicker.SelectedColorIndexChanged += new EventHandler(this.standardColorListPicker_SelectedColorIndexChanged);
     this.label2.AutoSize = true;
     this.label2.Location = new Point(6, 3);
     this.label2.Name     = "label2";
     this.label2.Size     = new Size(84, 13);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Standard colors:";
     this.label1.AutoSize = true;
     this.label1.Location = new Point(7, 50);
     this.label1.Name     = "label1";
     this.label1.Size     = new Size(67, 13);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Color circles:";
     this.indexedColorSet1ListPicker.BackColor               = SystemColors.ControlLightLight;
     this.indexedColorSet1ListPicker.ColorBoxDistance        = new Size(18, 18);
     this.indexedColorSet1ListPicker.ColorBoxMargin          = new Size(5, 5);
     this.indexedColorSet1ListPicker.ColorBoxPainter         = (ColorListPicker.ColorBoxPaintDelegate)null;
     this.indexedColorSet1ListPicker.ColorBoxSize            = new Size(14, 14);
     this.indexedColorSet1ListPicker.ColorProvider           = (Func <int, System.Drawing.Color>)null;
     this.indexedColorSet1ListPicker.ColorProviderColorCount = 0;
     this.indexedColorSet1ListPicker.Location                   = new Point(6, 66);
     this.indexedColorSet1ListPicker.Name                       = "indexedColorSet1ListPicker";
     this.indexedColorSet1ListPicker.RowMaxColorCount           = 24;
     this.indexedColorSet1ListPicker.SelectedColorIndex         = -1;
     this.indexedColorSet1ListPicker.Size                       = new Size(624, 95);
     this.indexedColorSet1ListPicker.TabIndex                   = 0;
     this.indexedColorSet1ListPicker.Text                       = "indexedColorSet1ListPicker";
     this.indexedColorSet1ListPicker.SelectedColorIndexChanged += new EventHandler(this.indexedColorSet1ListPicker_SelectedColorIndexChanged);
     this.trueColorTabPage.Controls.Add((Control)this.colorRgbEditor);
     this.trueColorTabPage.Location = new Point(4, 22);
     this.trueColorTabPage.Name     = "trueColorTabPage";
     this.trueColorTabPage.Padding  = new Padding(3);
     this.trueColorTabPage.Size     = new Size(635, 398);
     this.trueColorTabPage.TabIndex = 1;
     this.trueColorTabPage.Text     = "True color";
     this.trueColorTabPage.UseVisualStyleBackColor = true;
     this.colorRgbEditor.BackColor     = SystemColors.ControlLightLight;
     this.colorRgbEditor.Color         = System.Drawing.Color.Black;
     this.colorRgbEditor.Location      = new Point(6, 6);
     this.colorRgbEditor.Name          = "colorRgbEditor";
     this.colorRgbEditor.Size          = new Size(625, 295);
     this.colorRgbEditor.TabIndex      = 0;
     this.colorRgbEditor.ColorChanged += new EventHandler(this.colorRgbEditor_ColorChanged);
     this.colorBookColorTabPage.Controls.Add((Control)this.colorNameTextBox);
     this.colorBookColorTabPage.Controls.Add((Control)this.label5);
     this.colorBookColorTabPage.Controls.Add((Control)this.colorBookNameTextBox);
     this.colorBookColorTabPage.Controls.Add((Control)this.label4);
     this.colorBookColorTabPage.Location = new Point(4, 22);
     this.colorBookColorTabPage.Name     = "colorBookColorTabPage";
     this.colorBookColorTabPage.Padding  = new Padding(3);
     this.colorBookColorTabPage.Size     = new Size(635, 398);
     this.colorBookColorTabPage.TabIndex = 2;
     this.colorBookColorTabPage.Text     = "Color book";
     this.colorBookColorTabPage.UseVisualStyleBackColor = true;
     this.colorNameTextBox.Anchor     = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.colorNameTextBox.Location   = new Point(96, 41);
     this.colorNameTextBox.Name       = "colorNameTextBox";
     this.colorNameTextBox.Size       = new Size(533, 20);
     this.colorNameTextBox.TabIndex   = 3;
     this.colorNameTextBox.Validated += new EventHandler(this.colorNameTextBox_Validated);
     this.label5.AutoSize             = true;
     this.label5.Location             = new Point(6, 44);
     this.label5.Name                     = "label5";
     this.label5.Size                     = new Size(35, 13);
     this.label5.TabIndex                 = 2;
     this.label5.Text                     = "Name";
     this.colorBookNameTextBox.Anchor     = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.colorBookNameTextBox.Location   = new Point(96, 11);
     this.colorBookNameTextBox.Name       = "colorBookNameTextBox";
     this.colorBookNameTextBox.Size       = new Size(533, 20);
     this.colorBookNameTextBox.TabIndex   = 1;
     this.colorBookNameTextBox.Validated += new EventHandler(this.colorBookNameTextBox_Validated);
     this.label4.AutoSize                 = true;
     this.label4.Location                 = new Point(6, 14);
     this.label4.Name                     = "label4";
     this.label4.Size                     = new Size(58, 13);
     this.label4.TabIndex                 = 0;
     this.label4.Text                     = "Color book";
     this.AutoScaleDimensions             = new SizeF(6f, 13f);
     this.AutoScaleMode                   = AutoScaleMode.Font;
     this.Controls.Add((Control)this.tabControl1);
     this.Name = nameof(CadColorEditor);
     this.Size = new Size(643, 424);
     this.tabControl1.ResumeLayout(false);
     this.indexColorTabPage.ResumeLayout(false);
     this.indexColorTabPage.PerformLayout();
     this.trueColorTabPage.ResumeLayout(false);
     this.colorBookColorTabPage.ResumeLayout(false);
     this.colorBookColorTabPage.PerformLayout();
     this.ResumeLayout(false);
 }