Esempio n. 1
0
        public CyperxComboBox()
        {
            Color color;
            Size  size1;

            CyperxComboBox.__ENCAddToList(this);
            _time      = 200;
            last       = 0;
            alpha      = 0;
            MouseState = CyperxComboBox.State.MouseLeft;
            GC1        = Color.FromArgb(75, 75, 75);
            GC2        = Color.FromArgb(65, 65, 65);
            GC3        = Color.FromArgb(63, 63, 63);
            GC4        = Color.FromArgb(100, 100, 100);
            GC5        = Color.FromArgb(130, 130, 130);
            GC6        = Color.FromArgb(120, 120, 120);
            PC1        = Color.FromArgb(50, 50, 50);
            PC2        = Color.FromArgb(83, 83, 83);
            FC         = Color.FromArgb(124, 195, 255);
            ShowS      = true;
            Font       = new Font("Arial", 8.0F);
            ForeColor  = Color.White;
            Size size2 = new Size(130, 23);

            MinimumSize = size2;
            t           = new Timer();
            t.Interval  = checked ((int)Math.Round((double)_time / 10.0));
            t.Tick     += new EventHandler(_Lambda$__4);
        }
Esempio n. 2
0
        protected override void OnMouseEnter(EventArgs e)
        {
            bool flag = MouseState != CyperxComboBox.State.Wait;

            if (flag)
            {
                MouseState = CyperxComboBox.State.MouseEnter;
                t.Start();
            }
        }
Esempio n. 3
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            MouseState = CyperxComboBox.State.Wait;
            t.Stop();
            alpha = 255;
            Thread thread = new Thread(new ThreadStart(ShowAndWait));

            thread.Start();
            Invalidate();
            base.OnMouseDown(e);
        }
Esempio n. 4
0
        public void ShowAndWait()
        {
            Point point1;

            bool flag = pop.Showing;

            if (flag)
            {
            }
            else
            {
                pop = null;
                pop = new Popup(_Items);
                Point point3 = Location;
                Point point2 = Location;
                Point point4 = new Point(point3.X, checked (checked (point2.Y + Height) + 2));
                pop.Location = point4;
                object[] objArr = new object[] { pop };
                base.Invoke(new CyperxComboBox.AddX(AddControl), objArr);
                pop.WaitForInput();
                alpha      = 0;
                last       = 0;
                MouseState = CyperxComboBox.State.MouseLeft;
                flag       = Operators.CompareString(pop.SelectedItem, "", false) != 0;
                if (flag)
                {
                    objArr = new object[] { pop.SelectedItem };
                    base.Invoke(new CyperxComboBox.UpdateTextD(UpdateText), objArr);
                }
                else
                {
                    objArr = new object[] { Text };
                    base.Invoke(new CyperxComboBox.UpdateTextD(UpdateText), objArr);
                }
            }
        }