/// <summary> /// These commands tell the cursor how to display /// its pan arrows. Its a struct that allows: /// 1. Show or hide of all pan arrows /// 2. Show or hide of single arrows /// /// When this is called, it will be firing in rapid /// succession as people are panning. /// </summary> public void recievePanCommand(cursorPanCommand _command) { if (_command.showL == true) { circleContainer.Visibility = System.Windows.Visibility.Hidden; arrowContainer.Visibility = System.Windows.Visibility.Visible; Lar.Visibility = System.Windows.Visibility.Visible; } if (_command.showR == true) { circleContainer.Visibility = System.Windows.Visibility.Hidden; arrowContainer.Visibility = System.Windows.Visibility.Visible; Rar.Visibility = System.Windows.Visibility.Visible; } if (_command.showB == true) { circleContainer.Visibility = System.Windows.Visibility.Hidden; arrowContainer.Visibility = System.Windows.Visibility.Visible; Bar.Visibility = System.Windows.Visibility.Visible; } if (_command.showT == true) { circleContainer.Visibility = System.Windows.Visibility.Hidden; arrowContainer.Visibility = System.Windows.Visibility.Visible; Tar.Visibility = System.Windows.Visibility.Visible; } if (_command.resetAll == true) { arrowContainer.Visibility = System.Windows.Visibility.Hidden; circleContainer.Visibility = System.Windows.Visibility.Visible; Lar.Visibility = System.Windows.Visibility.Visible; Rar.Visibility = System.Windows.Visibility.Visible; Tar.Visibility = System.Windows.Visibility.Visible; Bar.Visibility = System.Windows.Visibility.Visible; } }