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); }
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); }