public void Act(int index)
        {
            if (Auxiliary.SearchChild().listRegionRectangle.Count > index)
            {
                var currentObject = Auxiliary.SearchChild();

                Cursor.Position = Point.Round(currentObject.Center(index));

                Auxiliary.mouse_event((uint)Auxiliary.MouseEventFlags.RIGHTDOWN | (uint)Auxiliary.MouseEventFlags.RIGHTUP, 0, 0, 0, 0);
            }
        }
Beispiel #2
0
        public void Act(int index)
        {
            if (Auxiliary.SearchChild().listRegionRectangle.Count > index)
            {
                if (magnifierForm == null)
                {
                    var currentNumberObject = Auxiliary.SearchChild();

                    magnifierForm = new MagnifierForm();
                    magnifierForm.Show();

                    currentNumberObject.Magnifier = new Magnifier(magnifierForm, currentNumberObject.listRegionRectangle[index], currentNumberObject.GenerationNumber);
                }
            }
        }
Beispiel #3
0
        private void CommandEndFull(int index)
        {
            WorkObject currentWorkObject = Auxiliary.SearchChild();

            do
            {
                CommandEndMagnifier(currentWorkObject);

                if (index == 2)
                {
                    CommandEndSector(currentWorkObject);
                }

                currentWorkObject = currentWorkObject.ParantNumberObject;
            }while (currentWorkObject != null);
        }
Beispiel #4
0
        public void Act(int index)
        {
            switch (index)
            {
            case 0:

                CommandEndMagnifier(Auxiliary.SearchChild());
                CommandEndSector(Auxiliary.SearchChild());

                break;

            case 1:
            case 2:

                CommandEndFull(index);

                break;
            }
        }
        public void Act(int index)
        {
            if (Auxiliary.SearchChild().listRegionRectangle.Count > index)
            {
                var currentNumberObject = Auxiliary.SearchChild();

                var newChildNumberObject = new WorkObject
                {
                    //Добавление родителя
                    ParantNumberObject = currentNumberObject,
                    GenerationNumber   = currentNumberObject.GenerationNumber + 1
                };

                //Добавление потомка
                currentNumberObject.ChildNumberObject = newChildNumberObject;

                currentNumberObject.Visible = false;

                Drawing.MethodMain(newChildNumberObject,
                                   currentNumberObject.listRegionRectangle[index].Width, currentNumberObject.listRegionRectangle[index].Height,
                                   currentNumberObject.listRegionRectangle[index].StartX, currentNumberObject.listRegionRectangle[index].StartY);
            }
        }