Canguro.Controller.Controller.spinteraction_ActiveViewChange C# (CSharp) Method

spinteraction_ActiveViewChange() private method

Method to dispatch active view change events. This occurs when another view is selected, the view gets resized, the layout changes, etc. It resets the Selection Command.
private spinteraction_ActiveViewChange ( object sender, GraphicViewManager e ) : void
sender object The GraphicViewManager
e GraphicViewManager Empty argument
return void
        void spinteraction_ActiveViewChange(object sender, GraphicViewManager.ActiveViewChangedEventArgs e)
        {
            if (viewCmd == SelectionCommand)
            {
                SelectionCommand.Reset();
                GraphicViewManager.Instance.UpdateView();
                TrackingController.Reset(e.NewView);
                mainFrm.ScenePanel.Cursor = viewCmd.Cursor;
            }
        }