Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.model = ((TestHarness.MainWindowViewModel)(target));
                return;

            case 2:
                this.draftReading = ((DraftPicker.Views.DraftView)(target));
                return;

            case 3:

            #line 20 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

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