コード例 #1
0
        public WiiProviderSettings(WiiProvider pWiiProvider)
        {
            InitializeComponent();

            this.pWiiProvider = pWiiProvider;

            // Create a calibration window and hide it.
            this.pCalibrationWindow            = new CalibrationWindow();
            this.pCalibrationWindow.Visibility = Visibility.Hidden;

            this.pWiiProvider.OnNewFrame   += new EventHandler <FrameEventArgs>(pWiiProvider_OnNewFrame);
            this.pWiiProvider.OnConnect    += new Action <int, int>(pWiiProvider_OnConnect);
            this.pWiiProvider.OnDisconnect += new Action <int, int>(pWiiProvider_OnDisconnect);
        }
コード例 #2
0
        public WiiProviderSettings(WiiProvider pWiiProvider)
        {
            InitializeComponent();

            this.pWiiProvider = pWiiProvider;

            // Create a calibration window and hide it.
            this.pCalibrationWindow = new CalibrationWindow();
            this.pCalibrationWindow.Visibility = Visibility.Hidden;

            this.pWiiProvider.OnNewFrame += new EventHandler<FrameEventArgs>(pWiiProvider_OnNewFrame);
            this.pWiiProvider.OnConnect += new Action<int,int>(pWiiProvider_OnConnect);
            this.pWiiProvider.OnDisconnect += new Action<int,int>(pWiiProvider_OnDisconnect);
        }