Пример #1
0
        /*private void button1_Click_1(object sender, EventArgs e)
         * {
         *  Karta.selMode = SelectionMode.None;
         *  //if (Karta._Click)
         *  if (Karta.FindPoint)
         *  {
         *      //find.FlatAppearance.BorderColor = Color.White;
         *      Karta.UndoFind();
         *      //Karta._Click = false;
         *  }
         *  else
         *  {
         *      //find.FlatAppearance.BorderColor = Color.Aqua;
         *      move.FlatAppearance.BorderColor = Color.White;
         *      Karta.FindPoint = true;
         *      //Karta._Click = true;
         *  }
         *  Refresh();
         * }*/

        private void btSelectCrossing_Click(object sender, EventArgs e)
        {
            Karta.ClearSelection();
            if (Karta.selMode == SelectionMode.Group)
            {
                SetSelectionMode(SelectionMode.None);
            }
            else
            {
                SetSelectionMode(SelectionMode.Group);
            }
        }
Пример #2
0
        private void move_Click(object sender, EventArgs e)
        {
            Karta.ClearSelection();
            if (Karta.FindPoint)
            {
                //find.FlatAppearance.BorderColor = Color.White;
                Karta.UndoFind();
            }

            if (Karta.selMode == SelectionMode.Alone)
            {
                SetSelectionMode(SelectionMode.None);
            }
            else
            {
                SetSelectionMode(SelectionMode.Alone);
            }
        }