コード例 #1
0
 /// <summary>
 /// Creates and opens a new extras window if its not already created.
 /// </summary>
 /// <param name="sender">Event sender</param>
 /// <param name="e">Event arguments</param>
 private void extrasButton_Click(object sender, RoutedEventArgs e)
 {
     if (!WindowControl.extrasWindowExist)
     {
         ExtrasWindow extrasWindow = new ExtrasWindow();
         extrasWindow.Top                  = this.Top;
         extrasWindow.Left                 = this.Left + 998;
         extrasWindow.Visibility           = Visibility.Visible;
         WindowControl.extrasWindowVisible = true;
         WindowControl.extrasWindowExist   = true;
     }
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ExtrasWindow1 = ((BodyScanner.ExtrasWindow)(target));

            #line 8 "..\..\ExtrasWindow.xaml"
                this.ExtrasWindow1.Closing += new System.ComponentModel.CancelEventHandler(this.ExtrasWindow1_Closing);

            #line default
            #line hidden

            #line 8 "..\..\ExtrasWindow.xaml"
                this.ExtrasWindow1.Loaded += new System.Windows.RoutedEventHandler(this.ExtrasWindow1_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.colorStream = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.skeletonStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.startSavingSkeleton = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\ExtrasWindow.xaml"
                this.startSavingSkeleton.Click += new System.Windows.RoutedEventHandler(this.startSavingSkeleton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.stopSavingSkeleton = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\ExtrasWindow.xaml"
                this.stopSavingSkeleton.Click += new System.Windows.RoutedEventHandler(this.stopSavingSkeleton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.skeletonMenuBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.startDelaySlider = ((System.Windows.Controls.Slider)(target));

            #line 53 "..\..\ExtrasWindow.xaml"
                this.startDelaySlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.startDelaySlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.savingTimeSlider = ((System.Windows.Controls.Slider)(target));

            #line 55 "..\..\ExtrasWindow.xaml"
                this.savingTimeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.savingTimeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.oneFrameStopCheck = ((System.Windows.Controls.CheckBox)(target));

            #line 56 "..\..\ExtrasWindow.xaml"
                this.oneFrameStopCheck.Checked += new System.Windows.RoutedEventHandler(this.oneFrameStopCheck_Checked);

            #line default
            #line hidden

            #line 56 "..\..\ExtrasWindow.xaml"
                this.oneFrameStopCheck.Unchecked += new System.Windows.RoutedEventHandler(this.oneFrameStopCheck_Unchecked);

            #line default
            #line hidden
                return;

            case 10:
                this.manuelStopCheck = ((System.Windows.Controls.CheckBox)(target));

            #line 57 "..\..\ExtrasWindow.xaml"
                this.manuelStopCheck.Checked += new System.Windows.RoutedEventHandler(this.manuelStopCheck_Checked);

            #line default
            #line hidden

            #line 57 "..\..\ExtrasWindow.xaml"
                this.manuelStopCheck.Unchecked += new System.Windows.RoutedEventHandler(this.manuelStopCheck_Unchecked);

            #line default
            #line hidden
                return;

            case 11:
                this.startDelaySliderTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.savingTimeSliderTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.waitMeshCheck = ((System.Windows.Controls.CheckBox)(target));

            #line 64 "..\..\ExtrasWindow.xaml"
                this.waitMeshCheck.Checked += new System.Windows.RoutedEventHandler(this.waitMeshCheck_Checked);

            #line default
            #line hidden

            #line 64 "..\..\ExtrasWindow.xaml"
                this.waitMeshCheck.Unchecked += new System.Windows.RoutedEventHandler(this.waitMeshCheck_Unchecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }