예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 40 "..\..\..\..\Views\Nodes\DecisionNodeInfoControl.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteAppendCodeToken);

            #line default
            #line hidden

            #line 41 "..\..\..\..\Views\Nodes\DecisionNodeInfoControl.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteAppendCodeToken);

            #line default
            #line hidden
                return;

            case 2:

            #line 43 "..\..\..\..\Views\Nodes\DecisionNodeInfoControl.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteCompileDecisionModule);

            #line default
            #line hidden

            #line 44 "..\..\..\..\Views\Nodes\DecisionNodeInfoControl.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteCompileDecisionModule);

            #line default
            #line hidden
                return;

            case 3:
                this.decisionCodeRichTextBox = ((TraceLab.UI.WPF.Controls.RichTextBoxWithIntellisense)(target));
                return;

            case 4:
                this.CompileButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        /// <summary>
        /// When Document Property Changed, the new Document needs to attached the event handlers of all comboboxes
        /// withing then new Document, and dettach handlers in old document.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private static void DocumentPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RichTextBoxWithIntellisense textBox = sender as RichTextBoxWithIntellisense;

            if (textBox != null)
            {
                FlowDocument oldDocument = args.OldValue as FlowDocument;
                if (oldDocument != null)
                {
                    textBox.DettachEventHandlersFromAllComboBoxes(oldDocument);
                }
                FlowDocument newDocument = args.NewValue as FlowDocument;
                if (newDocument != null)
                {
                    textBox.AttachEventHandlersToAllComboBoxes(newDocument);
                }

                textBox.IsTextDirty = false;
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 42 "..\..\..\..\Views\Nodes\LoopDecisionNodeInfoControl.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteAppendCodeToken);
     
     #line default
     #line hidden
     
     #line 43 "..\..\..\..\Views\Nodes\LoopDecisionNodeInfoControl.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteAppendCodeToken);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 45 "..\..\..\..\Views\Nodes\LoopDecisionNodeInfoControl.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExecuteCompileDecisionModule);
     
     #line default
     #line hidden
     
     #line 46 "..\..\..\..\Views\Nodes\LoopDecisionNodeInfoControl.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteCompileDecisionModule);
     
     #line default
     #line hidden
     return;
     case 3:
     this.decisionCodeRichTextBox = ((TraceLab.UI.WPF.Controls.RichTextBoxWithIntellisense)(target));
     return;
     case 4:
     this.CompileButton = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }