//Constructor to setup the real NetworkKinectSettingsControl public SettingsControl(int kinectNumber, ref MasterSettings settings, IKinectCore kinect) { InitializeComponent(); Grid.SetColumn(this, 2); this.Visibility = System.Windows.Visibility.Collapsed; Core coreWrapper = (Core)kinect; NetworkKinectCore.NetworkKinectCore kinectCore = (NetworkKinectCore.NetworkKinectCore)coreWrapper; realControl = new NetworkKinectSettingsControl(kinectNumber, ref settings, kinectCore); realControl.Visibility = System.Windows.Visibility.Visible; this.MasterGrid.Children.Add((UserControl)realControl); }
//Constructor to setup the real KinectV2SettingsControl public SettingsControl(int kinectNumber, ref MasterSettings settings, IKinectCore kinect) { InitializeComponent(); Grid.SetColumn(this, 2); this.Visibility = System.Windows.Visibility.Collapsed; Core coreWrapper = (Core)kinect; KinectCoreV2 kinectCore = (KinectCoreV2)coreWrapper; realControl = new KinectV2SettingsControl(kinectNumber, ref settings, kinectCore); realControl.Visibility = System.Windows.Visibility.Visible; this.MasterGrid.Children.Add((UserControl)realControl); }