Пример #1
0
 /// <summary>
 /// Replace the top of the mouse mode stack
 /// </summary>
 /// <param name="m"></param>
 public void ReplaceMouseMode(MouseMode m)
 {
     Console.WriteLine("Replace mouse mode " + m);
     MouseModeStack.Pop();
     MouseModeStack.Push(m);
     Cursor = m.GetCursor();
 }
Пример #2
0
        public MouseMode PopMouseMode()
        {
            MouseMode m = MouseModeStack.Pop();
            //Console.WriteLine("Exit mouse mode " + m);
            MouseMode top = MouseModeStack.Peek();

            if (top != null)
            {
                Cursor = top.GetCursor();
            }
            return(m);
        }
Пример #3
0
 public void PushMouseMode(MouseMode m)
 {
     //Console.WriteLine("Enter mouse mode " + m);
     MouseModeStack.Push(m);
     Cursor = m.GetCursor();
 }