Ejemplo n.º 1
0
        public void Unwire(Grid grid)
        {
            Status        = null;
            StatusChange -= grid.Drawer.OnStatusChange;

            grid.Drawer.MouseChange -= OnMouseChange;

            if (grid.Scanner != null)
            {
                grid.Scanner.Selection -= OnSelection;
            }
        }
Ejemplo n.º 2
0
        public void Wire(Grid grid)
        {
            Status = grid.Status;
            Status.ResetButtons();

            StatusChange += grid.Drawer.OnStatusChange;

            if (Config.Global.ShowMouseChanges)
            {
                grid.Drawer.MouseChange += OnMouseChange;
            }

            if (grid.Scanner != null)
            {
                grid.Scanner.Selection += OnSelection;
            }
        }