internal void InitializeEditor(ExpressionActivityEditor editor, ExpressionTextBox expressionTextBox)
        {
            if (editor != null)
            {
                expressionTextBox.InitializeHintText(editor.HintText);
                expressionTextBox.InternalHintText = expressionTextBox.HintText;
                SetBinding("InternalHintText", ExpressionActivityEditor.HintTextProperty, editor, expressionTextBox, BindingMode.TwoWay);
                SetBinding("IsSupportedExpression", ExpressionActivityEditor.IsSupportedExpressionProperty, editor, expressionTextBox, BindingMode.OneWayToSource, null);
                SetBinding("HorizontalScrollBarVisibility", ExpressionActivityEditor.HorizontalScrollBarVisibilityProperty, editor, expressionTextBox);
                SetBinding("VerticalScrollBarVisibility", ExpressionActivityEditor.VerticalScrollBarVisibilityProperty, editor, expressionTextBox);
                SetBinding("AcceptsReturn", ExpressionActivityEditor.AcceptsReturnProperty, editor, expressionTextBox);
                SetBinding("AcceptsTab", ExpressionActivityEditor.AcceptsTabProperty, editor, expressionTextBox);
                SetBinding("Expression", ExpressionActivityEditor.ExpressionProperty, editor, expressionTextBox, BindingMode.TwoWay, new Collection <ValidationRule> {
                    new ExpressionValidationRule(expressionTextBox)
                });
                SetBinding("ExpressionType", ExpressionActivityEditor.ExpressionTypeProperty, editor, expressionTextBox);
                SetBinding("OwnerActivity", ExpressionActivityEditor.OwnerActivityProperty, editor, expressionTextBox);
                SetBinding("UseLocationExpression", ExpressionActivityEditor.UseLocationExpressionProperty, editor, expressionTextBox);
                SetBinding("PathToArgument", ExpressionActivityEditor.PathToArgumentProperty, editor, expressionTextBox);
                SetBinding("IsReadOnly", ExpressionActivityEditor.IsReadOnlyProperty, editor, expressionTextBox);
                SetBinding("ExplicitCommit", ExpressionActivityEditor.ExplicitCommitProperty, editor, expressionTextBox);
                SetBinding("ClipToBounds", ExpressionActivityEditor.ClipToBoundsProperty, editor, expressionTextBox);

                TextualExpressionEditor textEditor = editor as TextualExpressionEditor;
                if (textEditor != null)
                {
                    SetBinding("MaxLines", TextualExpressionEditor.MaxLinesProperty, textEditor, expressionTextBox);
                    SetBinding("MinLines", TextualExpressionEditor.MinLinesProperty, textEditor, expressionTextBox);
                    SetBinding("DefaultValue", TextualExpressionEditor.DefaultValueProperty, textEditor, expressionTextBox);
                }

                SetBinding("IsIndependentExpression", ExpressionActivityEditor.IsIndependentExpressionProperty, editor, expressionTextBox);
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.trainingRequestEntry = ((System.Activities.Presentation.View.ExpressionTextBox)(target));

            #line 35 "..\..\ApplyDesigner.xaml"
                this.trainingRequestEntry.Loaded += new System.Windows.RoutedEventHandler(this.trainingRequestEntry_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.applyResultEntry = ((System.Activities.Presentation.View.ExpressionTextBox)(target));

            #line 50 "..\..\ApplyDesigner.xaml"
                this.applyResultEntry.Loaded += new System.Windows.RoutedEventHandler(this.applyResultEntry_Loaded);

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

            #line 10 "..\..\..\..\Excel\Ope_Cell\CellMergeDesigner.xaml"
                ((RPA.Integration.Activities.ExcelPlugins.CellMergeDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.IcoPath_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.icoPath = ((System.Windows.Media.ImageDrawing)(target));
                return;

            case 3:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 5:
                this.expressTextBox_Copy = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Environment\GetEnvVarDesigner.xaml"
                ((RPA.Core.Activities.EnvironmentActivity.GetEnvVarDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.IcoPath_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.icoPath = ((System.Windows.Media.ImageDrawing)(target));
                return;

            case 3:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 50 "..\..\..\Environment\GetEnvVarDesigner.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.labelPrint = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.labelFrom = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.ctrlText = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 5:
                this.chbNewLine = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\Designers\InvokeWorkflowFromDatabaseDesigner.xaml"
                ((CustomActivity.InvokeWorkflowFromDatabaseDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ActivityDesigner_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.inputTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 3:
                this.activityNameComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.outputTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.hostTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 2:
                this.fromTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 3:
                this.toTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 4:
                this.subjectTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 5:
                this.bodyTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 6:
                this.attachmentLinkTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ConnectionSettings = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:

            #line 22 "..\..\..\DataBase\ConnectionDialog.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewConnectionButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ConnStringExpr = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 33 "..\..\..\DataBase\ConnectionDialog.xaml"
                this.SourceList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboboxControl_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
            void OnWindowLoaded(object sender, RoutedEventArgs args)
            {
                ContentPresenter  presenter     = (ContentPresenter)this.Content;
                PropertyValue     propertyValue = (PropertyValue)presenter.Content;
                Button            okButton      = (Button)this.FindName("okButton");
                ExpressionTextBox etb           = VisualTreeUtils.GetNamedChild <ExpressionTextBox>(presenter, "PART_expressionTextBox");
                TextBlock         hint          = VisualTreeUtils.GetNamedChild <TextBlock>(presenter, "PART_hintText");

                Fx.Assert(etb != null, "ExpressionTextBox with name 'PART_expressionTextBox' should be in the template!");
                Fx.Assert(hint != null, "Hint TextBlock with name 'PART_hintText' should be in the template!");
                //bind button with ETB's commit command
                okButton.Command       = DesignerView.CommitCommand;
                okButton.CommandTarget = etb;
                etb.Loaded            += new RoutedEventHandler(OnExpressionTextBoxLoaded);

                if (null != etb && null != hint)
                {
                    IValueConverter typeToStringConverter = (IValueConverter)EditorResources.GetResources()["TypeParameterConverter"];
                    string          hintFormatString      = (string)EditorResources.GetResources()["dialogExpressionEditorHintFormatString"];

                    //convert expression's container type to friendly name (i.e. replace generic '1 with <T>)
                    string friendlyTypeName = (string)
                                              typeToStringConverter.Convert(etb.ExpressionType ?? propertyValue.ParentProperty.PropertyType, typeof(string), null, CultureInfo.CurrentCulture);

                    //format editor title to include friendly type name and property name
                    hint.Text = string.Format(CultureInfo.CurrentCulture, hintFormatString, propertyValue.ParentProperty.PropertyName, friendlyTypeName);
                }
            }
示例#10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AttachFiles = ((System.Windows.Controls.Label)(target));

            #line 18 "..\..\..\..\Mail\Outlook\ReplyToOutlookMailMessageDesigner.xaml"
                this.AttachFiles.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AttachFiles_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.MailMessageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.BodyLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.MailMessageTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 5:
                this.BodyTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TitleText = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 48 "..\..\..\DataBase\ConnectSettingDialog.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.NewConn1 = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 57 "..\..\..\DataBase\ConnectSettingDialog.xaml"
                this.btnWizard.Click += new System.Windows.RoutedEventHandler(this.btnWizard_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.etb = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 6:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 76 "..\..\..\DataBase\ConnectSettingDialog.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.btnOk = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\..\DataBase\ConnectSettingDialog.xaml"
                this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#12
0
        //Following properties have impact on inner editor type:
        //1) Expression
        //2) OwnerActivity
        //3) ExpressionActivityEditor
        //4) IsInlinePropertyEditor
        //5) UseLocationExpression
        static void OnInnerControlRelatedPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            ExpressionTextBox expressionTextBox = sender as ExpressionTextBox;

            if (!expressionTextBox.IsDesignMode)
            {
                expressionTextBox.LoadInnerControl(expressionTextBox.GetExpressionEditorType());
            }
        }
示例#13
0
        void OnCommitCommandExecute(object sender, ExecutedRoutedEventArgs e)
        {
            ExpressionTextBox expressionTextBox = sender as ExpressionTextBox;

            if (expressionTextBox.editor != null)
            {
                expressionTextBox.editor.Commit(expressionTextBox.ExplicitCommit);
                e.Handled = true;
            }
        }
示例#14
0
        void OnCommitCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            ExpressionTextBox expressionTextBox = sender as ExpressionTextBox;

            if (expressionTextBox.editor != null)
            {
                e.CanExecute = expressionTextBox.editor.CanCommit();
                e.Handled    = true;
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.Text = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\ActivityDesigner1.xaml"
                ((ClickActivity.ClickActivityDemoDesigner)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.ActivityDesigner_Unloaded);

            #line default
            #line hidden

            #line 7 "..\..\ActivityDesigner1.xaml"
                ((ClickActivity.ClickActivityDemoDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ActivityDesigner_Loaded);

            #line default
            #line hidden

            #line 7 "..\..\ActivityDesigner1.xaml"
                ((ClickActivity.ClickActivityDemoDesigner)(target)).Initialized += new System.EventHandler(this.ActivityDesigner_Initialized);

            #line default
            #line hidden
                return;

            case 2:

            #line 18 "..\..\ActivityDesigner1.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.Hyperlink_Click);

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.textbox2 = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 5:
                this.img = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#17
0
        protected override string GetItemStatusCore()
        {
            ExpressionTextBox expressionTextBox = this.Owner as ExpressionTextBox;

            if ((expressionTextBox != null) && (expressionTextBox.Editor != null))
            {
                return(expressionTextBox.Editor.ItemStatus);
            }
            else
            {
                return(base.GetItemStatusCore());
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AppendLineTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));

            #line 34 "..\..\..\PowerShell\PowerShellDesigner.xaml"
                this.AppendLineTextBox.Loaded += new System.Windows.RoutedEventHandler(this.AppendLineTextBox_Loaded);

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

            #line 9 "..\..\..\..\Excel\Ope_Process\ExcelCreateDesigner.xaml"
                ((RPA.Integration.Activities.ExcelPlugins.ExcelCreateDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.IcoPath_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.icoPath = ((System.Windows.Media.ImageDrawing)(target));
                return;

            case 3:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 45 "..\..\..\..\Excel\Ope_Process\ExcelCreateDesigner.xaml"
                this.getUrlButton.Click += new System.Windows.RoutedEventHandler(this.PathSelect);

            #line default
            #line hidden
                return;

            case 5:
                this.expressTextBox1 = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 6:
                this.getUrlButton1 = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\..\..\Excel\Ope_Process\ExcelCreateDesigner.xaml"
                this.getUrlButton1.Click += new System.Windows.RoutedEventHandler(this.ShowSaveFileDialog);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FileNameTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 34 "..\..\..\Image\LoadImageDesigner.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 66 "..\..\..\Browser\InsertJSDesigner.xaml"
                this.getUrlButton.Click += new System.Windows.RoutedEventHandler(this.PathSelect);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 2:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 42 "..\..\..\Attribute\WaitAttrDesigner.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoadButton = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\..\Mail\Outlook\SaveOutlookAttachementsDesigner.xaml"
                this.LoadButton.Click += new System.Windows.RoutedEventHandler(this.LoadButton_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.FolderPathTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Combobox = ((UiPath.Shared.Activities.Design.Controls.ComboboxControl)(target));
                return;

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

            #line 27 "ComboboxControl.xaml"
                this.Button.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ComboboxInputBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 45 "ComboboxControl.xaml"
                this.PropertiesComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.PropertiesComboBox_SelectionChanged);

            #line default
            #line hidden

            #line 46 "ComboboxControl.xaml"
                this.PropertiesComboBox.DropDownOpened += new System.EventHandler(this.PropertiesComboBox_OnDropDownOpened);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LogLevelLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.LogLevelComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.LogDataLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.LogDataTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Designers\SampleActivityDesigner.xaml"
                ((CustomActivity.SampleActivityDesigner)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.ActivityDesigner_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.TheGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.itemstextbox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\Word\Ope_Write\InsertFileDesigner.xaml"
                ((RPA.Integration.Activities.WordPlugins.InsertFileDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.IcoPath_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.icoPath = ((System.Windows.Media.ImageDrawing)(target));
                return;

            case 3:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 47 "..\..\..\..\Word\Ope_Write\InsertFileDesigner.xaml"
                this.getUrlButton.Click += new System.Windows.RoutedEventHandler(this.PathSelect);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProgIDTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 2:
                this.MethodNameTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

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

            #line 47 "..\..\..\Execute\InvokeComMethod.xaml"
                this.EditArgumentsBtn.Click += new System.Windows.RoutedEventHandler(this.EditArgumentsBtn_Click);

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

            #line 9 "..\..\..\Attribute\GetAttrDesigner.xaml"
                ((RPA.UIAutomation.Activities.Attribute.GetAttrDesigner)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ActivityDesigner_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 4:
                this.Hyperlink = ((System.Windows.Documents.Hyperlink)(target));

            #line 38 "..\..\..\Attribute\GetAttrDesigner.xaml"
                this.Hyperlink.Click += new System.Windows.RoutedEventHandler(this.HyperlinkClick);

            #line default
            #line hidden
                return;

            case 5:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:

            #line 42 "..\..\..\Attribute\GetAttrDesigner.xaml"
                ((System.Windows.Controls.Button)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 7:
                this.navigateImage = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.navigateButton = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\..\Attribute\GetAttrDesigner.xaml"
                this.navigateButton.Click += new System.Windows.RoutedEventHandler(this.NavigateButtonClick);

            #line default
            #line hidden

            #line 45 "..\..\..\Attribute\GetAttrDesigner.xaml"
                this.navigateButton.Initialized += new System.EventHandler(this.NavigateButtonInitialized);

            #line default
            #line hidden
                return;

            case 9:
                this.contextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 10:

            #line 51 "..\..\..\Attribute\GetAttrDesigner.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.meauItemClickOne);

            #line default
            #line hidden
                return;

            case 11:
                this.expressTextBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
                return;

            case 12:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 76 "..\..\..\Attribute\GetAttrDesigner.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#30
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.stateContentGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.conditionBox = ((System.Activities.Presentation.View.ExpressionTextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void SetBinding(string path, DependencyProperty property, FrameworkElement target, ExpressionTextBox source,
     BindingMode mode = BindingMode.OneWay, IEnumerable<ValidationRule> validationRules = null)
 {
     Binding binding = new Binding(path);
     binding.Source = source;
     binding.Mode = mode;
     if ((validationRules != null) && (validationRules.Count<ValidationRule>() > 0))
     {
         foreach (ValidationRule rule in validationRules)
         {
             binding.ValidationRules.Add(rule);
         }
     }
     target.SetBinding(property, binding);
 }
 public ExpressionTextBoxAutomationPeer(ExpressionTextBox owner)
     : base(owner)
 { 
 }
        internal void InitializeEditor(ExpressionActivityEditor editor, ExpressionTextBox expressionTextBox)
        {
            if (editor != null)
            {
                expressionTextBox.InitializeHintText(editor.HintText);
                expressionTextBox.InternalHintText = expressionTextBox.HintText;
                SetBinding("InternalHintText", ExpressionActivityEditor.HintTextProperty, editor, expressionTextBox, BindingMode.TwoWay);
                SetBinding("IsSupportedExpression", ExpressionActivityEditor.IsSupportedExpressionProperty, editor, expressionTextBox, BindingMode.OneWayToSource, null);
                SetBinding("HorizontalScrollBarVisibility", ExpressionActivityEditor.HorizontalScrollBarVisibilityProperty, editor, expressionTextBox);
                SetBinding("VerticalScrollBarVisibility", ExpressionActivityEditor.VerticalScrollBarVisibilityProperty, editor, expressionTextBox);
                SetBinding("AcceptsReturn", ExpressionActivityEditor.AcceptsReturnProperty, editor, expressionTextBox);
                SetBinding("AcceptsTab", ExpressionActivityEditor.AcceptsTabProperty, editor, expressionTextBox);
                SetBinding("Expression", ExpressionActivityEditor.ExpressionProperty, editor, expressionTextBox, BindingMode.TwoWay, new Collection<ValidationRule> { new ExpressionValidationRule(expressionTextBox) });
                SetBinding("ExpressionType", ExpressionActivityEditor.ExpressionTypeProperty, editor, expressionTextBox);
                SetBinding("OwnerActivity", ExpressionActivityEditor.OwnerActivityProperty, editor, expressionTextBox);
                SetBinding("UseLocationExpression", ExpressionActivityEditor.UseLocationExpressionProperty, editor, expressionTextBox);
                SetBinding("PathToArgument", ExpressionActivityEditor.PathToArgumentProperty, editor, expressionTextBox);
                SetBinding("IsReadOnly", ExpressionActivityEditor.IsReadOnlyProperty, editor, expressionTextBox);
                SetBinding("ExplicitCommit", ExpressionActivityEditor.ExplicitCommitProperty, editor, expressionTextBox);
                SetBinding("ClipToBounds", ExpressionActivityEditor.ClipToBoundsProperty, editor, expressionTextBox);

                TextualExpressionEditor textEditor = editor as TextualExpressionEditor;
                if (textEditor != null)
                {
                    SetBinding("MaxLines", TextualExpressionEditor.MaxLinesProperty, textEditor, expressionTextBox);
                    SetBinding("MinLines", TextualExpressionEditor.MinLinesProperty, textEditor, expressionTextBox);
                    SetBinding("DefaultValue", TextualExpressionEditor.DefaultValueProperty, textEditor, expressionTextBox);
                }

                SetBinding("IsIndependentExpression", ExpressionActivityEditor.IsIndependentExpressionProperty, editor, expressionTextBox);
            }
        }
 public ExpressionValidationRule(ExpressionTextBox owner)
 {
     this.owner = owner;
 }
示例#35
0
 public ExpressionValidationRule(ExpressionTextBox owner)
 {
     this.owner = owner;
 }