Exemple #1
0
        internal void SelectCisco(ColorSpaceControlCisco cisco)
        {
            if (!cisco.Selected)
            {
                DeselectCiscos();

                (Cisco = cisco).Selected = true;

                if (CiscoSelected_hi != null)
                {
                    CiscoSelected_hi(this);                     // ColorControl.ciscoselected()
                }
            }
        }
 void InitializeComponent()
 {
     this.cH = new creaturevisualizer.ColorSpaceControlCisco();
     this.cS = new creaturevisualizer.ColorSpaceControlCisco();
     this.cL = new creaturevisualizer.ColorSpaceControlCisco();
     this.SuspendLayout();
     //
     // cH
     //
     this.cH.DisplayCharacter = 'H';
     this.cH.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cH.Location         = new System.Drawing.Point(0, 0);
     this.cH.Margin           = new System.Windows.Forms.Padding(0);
     this.cH.Max                   = 360;
     this.cH.Name                  = "cH";
     this.cH.Selected              = false;
     this.cH.Size                  = new System.Drawing.Size(75, 20);
     this.cH.TabIndex              = 0;
     this.cH.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Degree;
     this.cH.Val                   = 0;
     this.cH.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cH.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // cS
     //
     this.cS.DisplayCharacter = 'S';
     this.cS.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cS.Location         = new System.Drawing.Point(0, 19);
     this.cS.Margin           = new System.Windows.Forms.Padding(0);
     this.cS.Max                   = 100;
     this.cS.Name                  = "cS";
     this.cS.Selected              = false;
     this.cS.Size                  = new System.Drawing.Size(75, 20);
     this.cS.TabIndex              = 1;
     this.cS.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Percent;
     this.cS.Val                   = 0;
     this.cS.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cS.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // cL
     //
     this.cL.DisplayCharacter = 'L';
     this.cL.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cL.Location         = new System.Drawing.Point(0, 38);
     this.cL.Margin           = new System.Windows.Forms.Padding(0);
     this.cL.Max                   = 100;
     this.cL.Name                  = "cL";
     this.cL.Selected              = false;
     this.cL.Size                  = new System.Drawing.Size(75, 20);
     this.cL.TabIndex              = 2;
     this.cL.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Percent;
     this.cL.Val                   = 0;
     this.cL.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cL.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // ColorSpaceControlHSL
     //
     this.Controls.Add(this.cH);
     this.Controls.Add(this.cS);
     this.Controls.Add(this.cL);
     this.Font   = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name   = "ColorSpaceControlHSL";
     this.Size   = new System.Drawing.Size(75, 58);
     this.ResumeLayout(false);
 }
Exemple #3
0
 internal protected void OnCiscoSelected(ColorSpaceControlCisco sender)
 {
     SelectCisco(sender);
 }
Exemple #4
0
 void InitializeComponent()
 {
     this.cR = new creaturevisualizer.ColorSpaceControlCisco();
     this.cG = new creaturevisualizer.ColorSpaceControlCisco();
     this.cB = new creaturevisualizer.ColorSpaceControlCisco();
     this.SuspendLayout();
     //
     // cR
     //
     this.cR.DisplayCharacter = 'R';
     this.cR.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cR.Location         = new System.Drawing.Point(0, 0);
     this.cR.Margin           = new System.Windows.Forms.Padding(0);
     this.cR.Max                   = 255;
     this.cR.Name                  = "cR";
     this.cR.Selected              = false;
     this.cR.Size                  = new System.Drawing.Size(75, 20);
     this.cR.TabIndex              = 0;
     this.cR.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Byte;
     this.cR.Val                   = 0;
     this.cR.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cR.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // cG
     //
     this.cG.DisplayCharacter = 'G';
     this.cG.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cG.Location         = new System.Drawing.Point(0, 19);
     this.cG.Margin           = new System.Windows.Forms.Padding(0);
     this.cG.Max                   = 255;
     this.cG.Name                  = "cG";
     this.cG.Selected              = false;
     this.cG.Size                  = new System.Drawing.Size(75, 20);
     this.cG.TabIndex              = 1;
     this.cG.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Byte;
     this.cG.Val                   = 0;
     this.cG.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cG.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // cB
     //
     this.cB.DisplayCharacter = 'B';
     this.cB.Font             = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cB.Location         = new System.Drawing.Point(0, 38);
     this.cB.Margin           = new System.Windows.Forms.Padding(0);
     this.cB.Max                   = 255;
     this.cB.Name                  = "cB";
     this.cB.Selected              = false;
     this.cB.Size                  = new System.Drawing.Size(75, 20);
     this.cB.TabIndex              = 2;
     this.cB.Units                 = creaturevisualizer.ColorSpaceControlCisco.Unit.Byte;
     this.cB.Val                   = 0;
     this.cB.CiscoSelected_lo     += new creaturevisualizer.CiscoSelectedEvent(this.OnCiscoSelected);
     this.cB.CiscoValueChanged_lo += new creaturevisualizer.CiscoValueChangedEvent(this.OnCiscoValueChanged);
     //
     // ColorSpaceControlRGB
     //
     this.Controls.Add(this.cR);
     this.Controls.Add(this.cG);
     this.Controls.Add(this.cB);
     this.Font   = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Margin = new System.Windows.Forms.Padding(0);
     this.Name   = "ColorSpaceControlRGB";
     this.Size   = new System.Drawing.Size(75, 58);
     this.ResumeLayout(false);
 }