示例#1
0
        private void Panel1_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }
            int x = e.X;
            int num1;

            if (x >= 0 && x <= 49)
            {
                num1 = 0;
            }
            else if (x >= 50 && x <= 99)
            {
                num1 = 1;
            }
            else if (x >= 100 && x <= 149)
            {
                num1 = 2;
            }
            else if (x >= 150 && x <= 199)
            {
                num1 = 3;
            }
            else if (x >= 200 && x <= 249)
            {
                num1 = 4;
            }
            else if (x >= 250 && x <= 399)
            {
                num1 = 5;
            }
            int y = e.Y;
            int num2;

            if (y >= 0 && y <= 59)
            {
                num2 = 0;
            }
            else if (y >= 60 && y <= 118)
            {
                num2 = 1;
            }
            else if (y >= 120 && y <= 177)
            {
                num2 = 2;
            }
            else if (y >= 180 && y <= 236)
            {
                num2 = 3;
            }
            else if (y >= 240 && y <= 295)
            {
                num2 = 4;
            }
            else if (y >= 300 && y <= 354)
            {
                num2 = 5;
            }
            else if (y >= 360 && y <= 413)
            {
                num2 = 6;
            }
            else if (y >= 420 && y <= 472)
            {
                num2 = 7;
            }
            LateBinding.LateSetComplex(this.Tag, (Type)null, "Value", new object[1]
            {
                (object)checked (this.VScrollBar1.Value + num2 * 6 + num1)
            }, (string[])null, 0 != 0, 1 != 0);
        }
示例#2
0
        private void Panel2_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }
            int x = e.X;
            int num1;

            if (x >= 0 && x <= 49)
            {
                num1 = 0;
            }
            else if (x >= 50 && x <= 99)
            {
                num1 = 1;
            }
            else if (x >= 100 && x <= 149)
            {
                num1 = 2;
            }
            else if (x >= 150 && x <= 199)
            {
                num1 = 3;
            }
            else if (x >= 200 && x <= 249)
            {
                num1 = 4;
            }
            else if (x >= 250 && x <= 399)
            {
                num1 = 5;
            }
            int y = e.Y;
            int num2;

            if (y >= 0 && y <= 59)
            {
                num2 = 0;
            }
            else if (y >= 60 && y <= 118)
            {
                num2 = 1;
            }
            else if (y >= 120 && y <= 177)
            {
                num2 = 2;
            }
            else if (y >= 180 && y <= 236)
            {
                num2 = 3;
            }
            else if (y >= 240 && y <= 295)
            {
                num2 = 4;
            }
            else if (y >= 300 && y <= 354)
            {
                num2 = 5;
            }
            else if (y >= 360 && y <= 413)
            {
                num2 = 6;
            }
            else if (y >= 420 && y <= 472)
            {
                num2 = 7;
            }
            this.iSelected = checked (this.VScrollBar1.Value + num2 * 6 + num1);
            LateBinding.LateSetComplex(this.Tag, (Type)null, "Value", new object[1]
            {
                (object)this.iSelected
            }, (string[])null, 0 != 0, 1 != 0);
            if (Art.GetStatic(this.iSelected) != null)
            {
                this.PictureBox1.Image = (Image)Art.GetStatic(this.iSelected);
                this.PictureBox1.Refresh();
            }
        }
示例#3
0
        private void Panel1_MouseDown(object sender, MouseEventArgs e)
        {
            int num  = 0;
            int num1 = 0;

            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                int x = e.X;
                if (x >= 0 && x <= 49)
                {
                    num = 0;
                }
                else if (x >= 50 && x <= 99)
                {
                    num = 1;
                }
                else if (x >= 100 && x <= 149)
                {
                    num = 2;
                }
                else if (x >= 150 && x <= 199)
                {
                    num = 3;
                }
                else if (x >= 200 && x <= 249)
                {
                    num = 4;
                }
                else if (x >= 250 && x <= 399)
                {
                    num = 5;
                }
                int y = e.Y;
                if (y >= 0 && y <= 59)
                {
                    num1 = 0;
                }
                else if (y >= 60 && y <= 118)
                {
                    num1 = 1;
                }
                else if (y >= 120 && y <= 177)
                {
                    num1 = 2;
                }
                else if (y >= 180 && y <= 236)
                {
                    num1 = 3;
                }
                else if (y >= 240 && y <= 295)
                {
                    num1 = 4;
                }
                else if (y >= 300 && y <= 354)
                {
                    num1 = 5;
                }
                else if (y >= 360 && y <= 413)
                {
                    num1 = 6;
                }
                else if (y >= 420 && y <= 472)
                {
                    num1 = 7;
                }
                object   tag   = this.Tag;
                object[] value = new object[] { checked (checked (this.VScrollBar1.Value + checked (num1 * 6)) + num) };
                LateBinding.LateSetComplex(tag, null, "Value", value, null, false, true);
            }
        }
示例#4
0
        private void Panel2_MouseDown(object sender, MouseEventArgs e)
        {
            int num  = 0;
            int num1 = 0;

            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                int x = e.X;
                if (x >= 0 && x <= 49)
                {
                    num = 0;
                }
                else if (x >= 50 && x <= 99)
                {
                    num = 1;
                }
                else if (x >= 100 && x <= 149)
                {
                    num = 2;
                }
                else if (x >= 150 && x <= 199)
                {
                    num = 3;
                }
                else if (x >= 200 && x <= 249)
                {
                    num = 4;
                }
                else if (x >= 250 && x <= 399)
                {
                    num = 5;
                }
                int y = e.Y;
                if (y >= 0 && y <= 59)
                {
                    num1 = 0;
                }
                else if (y >= 60 && y <= 118)
                {
                    num1 = 1;
                }
                else if (y >= 120 && y <= 177)
                {
                    num1 = 2;
                }
                else if (y >= 180 && y <= 236)
                {
                    num1 = 3;
                }
                else if (y >= 240 && y <= 295)
                {
                    num1 = 4;
                }
                else if (y >= 300 && y <= 354)
                {
                    num1 = 5;
                }
                else if (y >= 360 && y <= 413)
                {
                    num1 = 6;
                }
                else if (y >= 420 && y <= 472)
                {
                    num1 = 7;
                }
                this.iSelected = checked (checked (this.VScrollBar1.Value + checked (num1 * 6)) + num);
                object   tag      = this.Tag;
                object[] objArray = new object[] { this.iSelected };
                LateBinding.LateSetComplex(tag, null, "Value", objArray, null, false, true);
                if (Art.GetStatic(this.iSelected) != null)
                {
                    this.PictureBox1.Image = Art.GetStatic(this.iSelected);
                    this.PictureBox1.Refresh();
                }
            }
        }