/* Constructor */ public mAutopilot(mControllerPanel targetPanel) { apState = "OFF"; cs = targetPanel; events = new ObservableCollection<eventItem>(); apRoutines(); mainMusicStartOnly(); // Build for Cherie's TS //autoStart(); // Build for CHTEA TS }
public MainWindow() { InitializeComponent(); controls = new mControllerPanel(); //status bar set context statAP.DataContext = controls.ap; statSat.DataContext = controls.satellite; statMusic1.DataContext = controls.player1; statMusic2.DataContext = controls.player2; modePlayer.DataContext = controls.player1; //sliders set context volSliderSat.DataContext = controls.satellite; volSliderPlayer1.DataContext = controls.player1; volSliderPlayer2.DataContext = controls.player2; //players set context Playlist1.ItemsSource = controls.player1.playlist; Playlist2.ItemsSource = controls.player2.playlist; }
public static void setController(mControllerPanel target) { cs = target; }