示例#1
0
        /* 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
        }
示例#2
0
        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;
        }
示例#3
0
 public static void setController(mControllerPanel target)
 {
     cs = target;
 }