Ejemplo n.º 1
0
        private static void OnCalibarateControlPanelVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Visibility visSetting = (Visibility)e.NewValue;
            PrimaryDraftMeasurementBox control = (PrimaryDraftMeasurementBox)d;

            control.calibrateControlPanel.Visibility = visSetting;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.layoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.pnlCurrentDraft = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.calculatedDraft = ((MDG.Visuals.PrimaryDraftMeasurementBox)(target));
                return;

            case 4:
                this.actualDraft = ((DraftPicker.Views.DraftView)(target));
                return;

            case 5:

            #line 41 "..\..\CalibrationWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OK_Button_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 42 "..\..\CalibrationWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel_Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 207 "..\..\TelemetryMeter.xaml"
                ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.cmdGo = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.cmdStop = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.cboFreeboardShow = ((System.Windows.Controls.ComboBox)(target));

            #line 235 "..\..\TelemetryMeter.xaml"
                this.cboFreeboardShow.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ShowHideFreeboard_Changed);

            #line default
            #line hidden
                return;

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

            #line 242 "..\..\TelemetryMeter.xaml"
                this.cmdSwap.Click += new System.Windows.RoutedEventHandler(this.cmdSwap_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.blackBox = ((MDG.Visuals.PrimaryDraftMeasurementBox)(target));
                return;

            case 8:
                this.yellowBoxPrimary = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.yellowBox = ((MDG.Visuals.PrimaryDraftMeasurementBox)(target));
                return;

            case 10:
                this.blackTileAngle = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 12:
                this.blackBoxSecondary = ((System.Windows.Controls.Border)(target));
                return;

            case 13:
                this.blackOpposite = ((MDG.Visuals.DraftMeasurmentBox)(target));
                return;

            case 14:
                this.yellowBoxSecondary = ((System.Windows.Controls.Border)(target));
                return;

            case 15:
                this.yellowOpposite = ((MDG.Visuals.DraftMeasurmentBox)(target));
                return;
            }
            this._contentLoaded = true;
        }