예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.documentViewer = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.buttonDisplay.Click += new System.Windows.RoutedEventHandler(this.buttonDisplay_Click);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this.buttonDisplayTet.Click += new System.Windows.RoutedEventHandler(this.buttonDisplayTet_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.djNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.evenNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.evenDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 4:
                this.customerNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.paymentForHourTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.paymentForHourTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.PaymentForHourTextBoxTextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.hoursOfWorkTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.hoursOfWorkTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.HoursOfWorkTextBoxTextChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.documentViewer = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
                return;

            case 8:
                this.totalRateRun = ((System.Windows.Documents.Run)(target));
                return;

            case 9:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public FlowDocumentPageViewerHighlightHandler(FlowDocumentPageViewer flowDocumentPageViewer, System.Windows.Media.Brush bodyHighlightAdornerBrush, System.Windows.Media.Pen bodyHighlightAdornerPen, Brush bodyIterativeHighlightAdornerBrush, Pen bodyIterativeHighlightAdornerPen)
     : base(flowDocumentPageViewer, bodyHighlightAdornerBrush, bodyHighlightAdornerPen, bodyIterativeHighlightAdornerBrush, bodyIterativeHighlightAdornerPen)
 {
     this.flowDocumentPageViewer = flowDocumentPageViewer;
     ignorePropertyChange = true;
     BindingOperations.SetBinding(this, FlowDocumentPageViewerMasterPageNumberProperty, new Binding { Source = flowDocumentPageViewer, Path = new PropertyPath("MasterPageNumber"), Mode = BindingMode.OneWay });
     BindingOperations.SetBinding(this, FlowDocumentPageViewerZoomProperty, new Binding { Source = flowDocumentPageViewer, Path = new PropertyPath("Zoom"), Mode = BindingMode.OneWay });
     ignorePropertyChange = false;
 }
예제 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnSearch = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\..\Rich_text_controls\FlowDocumentSearchSample.xaml"
                this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.fdViewer = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.flowDocumentReader = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
                return;

            case 2:
                this.annotationsListBox = ((System.Windows.Controls.ListBox)(target));

            #line 120 "..\..\AnnotationTracker.xaml"
                this.annotationsListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.annotationsListBox_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public WhiteFlowDocumentPageViewerPeer(FlowDocumentPageViewer owner)
     : base(owner)
 {
     whitePeer = WhitePeer.Create(this, owner);
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.spRightUpper = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 2:
     this.fdrDocumentReader = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
     return;
     case 3:
     this.fdOngoingStory = ((System.Windows.Documents.FlowDocument)(target));
     return;
     case 4:
     this.spLeftLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 5:
     this.txtDirections = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.imgLLTT = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.brdChoiceOne = ((System.Windows.Controls.Border)(target));
     
     #line 649 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.brdChoiceOne.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MenuChoice_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.txtChoiceOne = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.brdChoiceTwo = ((System.Windows.Controls.Border)(target));
     
     #line 652 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.brdChoiceTwo.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MenuChoice_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.txtChoiceTwo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.brdChoiceThree = ((System.Windows.Controls.Border)(target));
     
     #line 655 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.brdChoiceThree.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MenuChoice_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.txtChoiceThree = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.spRightLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 14:
     this.imgLRTT = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.txtArmorSet = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.txtMeleeWeapon = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.txtRangedWeapon = ((System.Windows.Controls.TextBox)(target));
     return;
     case 18:
     this.txtHealthStat = ((System.Windows.Controls.TextBox)(target));
     
     #line 705 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.txtHealthStat.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtBox_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 19:
     this.txtArmorStat = ((System.Windows.Controls.TextBox)(target));
     
     #line 706 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.txtArmorStat.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtBox_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 20:
     this.txtSpeedStat = ((System.Windows.Controls.TextBox)(target));
     
     #line 707 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.txtSpeedStat.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtBox_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 21:
     this.txtMagicStat = ((System.Windows.Controls.TextBox)(target));
     
     #line 708 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.txtMagicStat.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtBox_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 22:
     this.txtLuckStat = ((System.Windows.Controls.TextBox)(target));
     
     #line 709 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.txtLuckStat.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtBox_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 23:
     this.pupWorkingBar = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 24:
     this.pupText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.pupBtn = ((System.Windows.Controls.Button)(target));
     
     #line 725 "..\..\..\pages\StoryGeneratorOLD.xaml"
     this.pupBtn.Click += new System.Windows.RoutedEventHandler(this.pupBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
예제 #8
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.grdFullStory = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.imgSceneImage = ((System.Windows.Media.ImageBrush)(target));
     return;
     case 3:
     this.spRightUpper = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 4:
     this.fdrDocumentReader = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
     return;
     case 5:
     this.fdOngoingStory = ((System.Windows.Documents.FlowDocument)(target));
     return;
     case 6:
     this.spLeftLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 7:
     this.txtDirections = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.brdChoiceOne = ((System.Windows.Controls.Border)(target));
     
     #line 654 "..\..\Story.xaml"
     this.brdChoiceOne.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StoryChoice_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.txtChoiceOne = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.brdChoiceTwo = ((System.Windows.Controls.Border)(target));
     
     #line 657 "..\..\Story.xaml"
     this.brdChoiceTwo.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StoryChoice_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.txtChoiceTwo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.brdChoiceThree = ((System.Windows.Controls.Border)(target));
     
     #line 660 "..\..\Story.xaml"
     this.brdChoiceThree.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.StoryChoice_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.txtChoiceThree = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.spRightLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 15:
     this.txtProtagonist = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.txtMid = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 17:
     this.txtTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 18:
     this.txtArmorSet = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 19:
     this.txtMeleeWeapon = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 20:
     this.txtRangedWeapon = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.txtHealthStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 22:
     this.txtArmorStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.txtSpeedStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 24:
     this.txtMagicStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.txtLuckStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 26:
     this.txtDecisionsMade = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.txtStoryLength = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
 /// <summary>
 /// Constructor. 
 /// </summary>
 /// <param name="owner">Owner of the AutomationPeer.</param> 
 public FlowDocumentPageViewerAutomationPeer(FlowDocumentPageViewer owner) 
     : base(owner)
 { } 
예제 #10
0
 public FlowDocumentPageViewerProxy(FlowDocumentPageViewer proxied) : base(proxied) { }
예제 #11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.spLeftUpper = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 2:
     this.imgSceneImage = ((System.Windows.Media.ImageBrush)(target));
     return;
     case 3:
     this.spRightUpper = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 4:
     this.fdrDocumentReader = ((System.Windows.Controls.FlowDocumentPageViewer)(target));
     return;
     case 5:
     this.fdOngoingStory = ((System.Windows.Documents.FlowDocument)(target));
     return;
     case 6:
     this.spLeftLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 7:
     this.txtDirections = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.brdChoiceOne = ((System.Windows.Controls.Border)(target));
     return;
     case 9:
     this.txtChoiceOne = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.brdChoiceTwo = ((System.Windows.Controls.Border)(target));
     return;
     case 11:
     this.txtChoiceTwo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.brdChoiceThree = ((System.Windows.Controls.Border)(target));
     return;
     case 13:
     this.txtChoiceThree = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.spRightLower = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 15:
     this.txtProtagonist = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.txtMid = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 17:
     this.txtTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 18:
     this.txtArmorSet = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 19:
     this.txtMeleeWeapon = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 20:
     this.txtRangedWeapon = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.txtHealthStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 22:
     this.txtArmorStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.txtSpeedStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 24:
     this.txtMagicStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.txtLuckStat = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 26:
     this.txtDecisionsMade = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.txtStoryLength = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }