Exemplo n.º 1
0
 // Methods
 public VersionCombineControl()
 {
     this.m_ibE = new IntegerInputBoxItem
     {
         Size    = new Size(50, 20),
         Minimum = 0,
         Maximum = 0x186a0,
         Value   = 0
     };
     this.m_lblE = new LabelItem
     {
         Text = "."
     };
     this.m_ibAlpha = new IntegerInputBoxItem
     {
         Size    = new Size(50, 20),
         Minimum = 0,
         Maximum = 0x186a0,
         Value   = 0
     };
     this.m_lblAlpha = new LabelItem
     {
         Text = "."
     };
     this.m_ibBeta = new IntegerInputBoxItem
     {
         Size    = new Size(50, 20),
         Minimum = 0,
         Maximum = 0x186a0,
         Value   = 0
     };
     this.m_lblBeta = new LabelItem
     {
         Text = "."
     };
     this.m_ibRC = new IntegerInputBoxItem
     {
         Size    = new Size(50, 20),
         Minimum = 0,
         Maximum = 0x186a0,
         Value   = 0
     };
     this.BaseItems.Add(this.m_ibE);
     this.BaseItems.Add(this.m_lblE);
     this.BaseItems.Add(this.m_ibAlpha);
     this.BaseItems.Add(this.m_lblAlpha);
     this.BaseItems.Add(this.m_ibBeta);
     this.BaseItems.Add(this.m_lblBeta);
     this.BaseItems.Add(this.m_ibRC);
     ((ILockCollectionHelper)this.BaseItems).SetLocked(true);
     this.ShowBackgroud = false;
     //
     this.m_ibE.ValueChanged     += new IntValueChangedHandler(IntValue_ValueChanged);
     this.m_ibAlpha.ValueChanged += new IntValueChangedHandler(IntValue_ValueChanged);
     this.m_ibBeta.ValueChanged  += new IntValueChangedHandler(IntValue_ValueChanged);
     this.m_ibRC.ValueChanged    += new IntValueChangedHandler(IntValue_ValueChanged);
 }
Exemplo n.º 2
0
        public override object Clone()
        {
            IntegerInputBoxItem baseItem = new IntegerInputBoxItem();

            baseItem.Checked   = this.Checked;
            baseItem.Enabled   = this.Enabled;
            baseItem.Font      = this.Font;
            baseItem.ForeColor = this.ForeColor;
            baseItem.Name      = this.Name;
            baseItem.Site      = this.Site;
            baseItem.Size      = this.Size;
            baseItem.Tag       = this.Tag;
            baseItem.Text      = this.Text;
            baseItem.Visible   = this.Visible;
            //
            baseItem.Minimum = this.Minimum;
            baseItem.Maximum = this.Maximum;
            baseItem.Value   = this.Value;
            baseItem.CanEdit = this.CanEdit;
            if (this.GetEventState("VisibleChanged") == EventStateStyle.eUsed)
            {
                baseItem.VisibleChanged += new EventHandler(baseItem_VisibleChanged);
            }
            if (this.GetEventState("SizeChanged") == EventStateStyle.eUsed)
            {
                baseItem.SizeChanged += new EventHandler(baseItem_SizeChanged);
            }
            if (this.GetEventState("Paint") == EventStateStyle.eUsed)
            {
                baseItem.Paint += new PaintEventHandler(baseItem_Paint);
            }
            if (this.GetEventState("MouseUp") == EventStateStyle.eUsed)
            {
                baseItem.MouseUp += new MouseEventHandler(baseItem_MouseUp);
            }
            if (this.GetEventState("MouseMove") == EventStateStyle.eUsed)
            {
                baseItem.MouseMove += new MouseEventHandler(baseItem_MouseMove);
            }
            if (this.GetEventState("MouseLeave") == EventStateStyle.eUsed)
            {
                baseItem.MouseLeave += new EventHandler(baseItem_MouseLeave);
            }
            if (this.GetEventState("MouseEnter") == EventStateStyle.eUsed)
            {
                baseItem.MouseEnter += new EventHandler(baseItem_MouseEnter);
            }
            if (this.GetEventState("MouseDown") == EventStateStyle.eUsed)
            {
                baseItem.MouseDown += new MouseEventHandler(baseItem_MouseDown);
            }
            if (this.GetEventState("MouseDoubleClick") == EventStateStyle.eUsed)
            {
                baseItem.MouseDoubleClick += new MouseEventHandler(baseItem_MouseDoubleClick);
            }
            if (this.GetEventState("MouseClick") == EventStateStyle.eUsed)
            {
                baseItem.MouseClick += new MouseEventHandler(baseItem_MouseClick);
            }
            if (this.GetEventState("LocationChanged") == EventStateStyle.eUsed)
            {
                baseItem.LocationChanged += new EventHandler(baseItem_LocationChanged);
            }
            if (this.GetEventState("EnabledChanged") == EventStateStyle.eUsed)
            {
                baseItem.EnabledChanged += new EventHandler(baseItem_EnabledChanged);
            }
            if (this.GetEventState("CheckedChanged") == EventStateStyle.eUsed)
            {
                baseItem.CheckedChanged += new EventHandler(baseItem_CheckedChanged);
            }
            if (this.GetEventState("TextChanged") == EventStateStyle.eUsed)
            {
                baseItem.TextChanged += new EventHandler(baseItem_TextChanged);
            }
            if (this.GetEventState("KeyDown") == EventStateStyle.eUsed)
            {
                baseItem.KeyDown += new KeyEventHandler(baseItem_KeyDown);
            }
            if (this.GetEventState("KeyPress") == EventStateStyle.eUsed)
            {
                baseItem.KeyPress += new KeyPressEventHandler(baseItem_KeyPress);
            }
            if (this.GetEventState("KeyUp") == EventStateStyle.eUsed)
            {
                baseItem.KeyUp += new KeyEventHandler(baseItem_KeyUp);
            }
            if (this.GetEventState("ValueChanged") == EventStateStyle.eUsed)
            {
                baseItem.ValueChanged += new IntValueChangedHandler(baseItem_ValueChanged);
            }
            return(baseItem);
        }