Пример #1
0
        public void SetLocationDirectly(int x, int y)
        {
            if (this.InvokeRequired)
            {
                SetLocationCallBack aSetLocationCall = new SetLocationCallBack(SetLocationDirectly);
                this.Invoke(aSetLocationCall, new object[] { x, y });
                return;
            }

            this.Location = new Point(x, y);
            this.Invalidate();
        }
Пример #2
0
        public void SetLocationDirectly(int x, int y)
        {
            if (this.InvokeRequired)
            {
                SetLocationCallBack aSetLocationCall = new SetLocationCallBack(SetLocationDirectly);
                this.Invoke(aSetLocationCall, new object[] { x, y });
                return;
            }

            this.Location = new Point(x, y);
            this.Invalidate();
        }