public WriteReportToArchive() { this.DisplayName = "Сформировать отчет и записать в архив"; AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(WriteReportToArchive), "UserName", new EditorAttribute(typeof(SendEmailToUserPropEditor), typeof(SendEmailToUserPropEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); builder.AddCustomAttributes(typeof(WriteReportToArchive), "Report_id", new EditorAttribute(typeof(ReportIDPropEditor), typeof(ReportIDDialog))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public SendReportToEmail() { DisplayName = "Сформировать отчет и отправить на почту"; AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(SendReportToEmail), "User_ID", new EditorAttribute(typeof(SendEmailToUserPropEditor), typeof(SendEmailToUserPropEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); builder.AddCustomAttributes(typeof(SendReportToEmail), "Report_id", new EditorAttribute(typeof(ReportIDPropEditor), typeof(ReportIDDialog))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public SendMail() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(SendMail), "Files", new EditorAttribute(typeof(ArgumentCollectionEditor), typeof(DialogPropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
//这个方法是为了加载左边控件库的图标 private static void LoadToolboxIconsForBuiltInActivities() { try { var sourceAssembly = Assembly.LoadFrom(@"Lib\Microsoft.VisualStudio.Activities.dll"); var builder = new AttributeTableBuilder(); if (sourceAssembly != null) { var stream = sourceAssembly.GetManifestResourceStream( "Microsoft.VisualStudio.Activities.Resources.resources"); if (stream != null) { var resourceReader = new ResourceReader(stream); foreach (var type in typeof(System.Activities.Activity).Assembly.GetTypes().Where( t => t.Namespace == "System.Activities.Statements")) { CreateToolboxBitmapAttributeForActivity(builder, resourceReader, type); } } } MetadataStore.AddAttributeTable(builder.CreateTable()); } catch (FileNotFoundException) { // Ignore - will use default icons } }
/// <summary> /// Return the attribute table that is applied to design time. /// </summary> public void Register() { AttributeTableBuilder builder = new AttributeTableBuilder(); LayoutMetadata.AddAttributes(builder); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { CategoryAttribute category = new CategoryAttribute(Resources.DropboxActivitiesCategory); AttributeTableBuilder builder = new AttributeTableBuilder(); ShowPropertyInOutlineViewAttribute hideFromOutlineAttribute = new ShowPropertyInOutlineViewAttribute() { CurrentPropertyVisible = false, DuplicatedChildNodesVisible = false }; builder.AddCustomAttributes(typeof(WithDropboxSession), nameof(WithDropboxSession.Body), hideFromOutlineAttribute); builder.AddCustomAttributes(typeof(Copy), category); builder.AddCustomAttributes(typeof(CreateFile), category); builder.AddCustomAttributes(typeof(CreateFolder), category); builder.AddCustomAttributes(typeof(Delete), category); builder.AddCustomAttributes(typeof(DownloadFile), category); builder.AddCustomAttributes(typeof(DownloadFolderAsZip), category); builder.AddCustomAttributes(typeof(GetFolderContent), category); builder.AddCustomAttributes(typeof(Move), category); builder.AddCustomAttributes(typeof(UploadFile), category); builder.AddCustomAttributes(typeof(WithDropboxSession), category); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { AttributeTableBuilder builder = new AttributeTableBuilder(); Type stateMachineType = typeof(StateMachine); builder.AddCustomAttributes(stateMachineType, new DesignerAttribute(typeof(StateMachineDesigner))); builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateContainerEditor.ChildStatesPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.VariablesPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.InitialStatePropertyName), BrowsableAttribute.No); Type stateType = typeof(State); builder.AddCustomAttributes(stateType, new DesignerAttribute(typeof(StateDesigner))); builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.EntryPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.ExitPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateType, stateType.GetProperty(StateContainerEditor.ChildStatesPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.TransitionsPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.IsFinalPropertyName), BrowsableAttribute.No); Type transitionType = typeof(Transition); builder.AddCustomAttributes(transitionType, new DesignerAttribute(typeof(TransitionDesigner))); builder.AddCustomAttributes(transitionType, transitionType.GetProperty(TransitionDesigner.TriggerPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(transitionType, transitionType.GetProperty(TransitionDesigner.ActionPropertyName), BrowsableAttribute.No); builder.AddCustomAttributes(transitionType, transitionType.GetProperty(TransitionDesigner.ToPropertyName), BrowsableAttribute.No); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { var builder = new AttributeTableBuilder(); builder.ValidateTable(); var categoryAttribute = new CategoryAttribute($"{Resources.Category}"); builder.AddCustomAttributes(typeof(ZendeskScope), categoryAttribute); builder.AddCustomAttributes(typeof(ZendeskScope), new DesignerAttribute(typeof(ZendeskScopeDesigner))); builder.AddCustomAttributes(typeof(ZendeskScope), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetTicket), categoryAttribute); builder.AddCustomAttributes(typeof(GetTicket), new DesignerAttribute(typeof(GetTicketDesigner))); builder.AddCustomAttributes(typeof(GetTicket), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(UpdateTicket), categoryAttribute); builder.AddCustomAttributes(typeof(UpdateTicket), new DesignerAttribute(typeof(UpdateTicketDesigner))); builder.AddCustomAttributes(typeof(UpdateTicket), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetUser), categoryAttribute); builder.AddCustomAttributes(typeof(GetUser), new DesignerAttribute(typeof(GetUserDesigner))); builder.AddCustomAttributes(typeof(GetUser), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetUserFields), categoryAttribute); builder.AddCustomAttributes(typeof(GetUserFields), new DesignerAttribute(typeof(GetUserFieldsDesigner))); builder.AddCustomAttributes(typeof(GetUserFields), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetTicketFieldOption), categoryAttribute); builder.AddCustomAttributes(typeof(GetTicketFieldOption), new DesignerAttribute(typeof(GetTicketFieldOptionDesigner))); builder.AddCustomAttributes(typeof(GetTicketFieldOption), new HelpKeywordAttribute("")); MetadataStore.AddAttributeTable(builder.CreateTable()); }
private static void AddTables(AttributeTableBuilder builder) { Debug.Assert(builder != null, "AddTables is called with null parameter!"); Assembly asm = Assembly.GetExecutingAssembly(); foreach (Type t in asm.GetTypes()) { if (t.IsSubclassOf(typeof(AttributeTableBuilder))) { try { AttributeTableBuilder atb = (AttributeTableBuilder)Activator.CreateInstance(t); builder.AddTable(atb.CreateTable()); } catch (Exception e) { if (e.IsFatal()) { throw; } Debug.Assert(false, string.Format(CultureInfo.InvariantCulture, "Exception in AddTables method: {0}", e)); } } } }
// <summary> // Initializes the metadata provided by this class. Multiple class // are ignored. // </summary> public static void Initialize() { if (_initialized) { return; } // Introduce any Cider-specific customizations AttributeTableBuilder builder = new AttributeTableBuilder(); // Make Name and FlowDirection properties browsable. The reason why // these attributes are here instead of in the BaseOverridesAttributeTable // is because the BaseAttributeTable explicitly hides these properties // and adding conflicting attributes to the same table (via BaseOverridesAttributeTable // which derives from BaseAttributeTable) currently results in unspeciefied // behavior. Hence we use this table to deal with these attributes. // MakeBasic(builder, typeof(FrameworkElement), FrameworkElement.FlowDirectionProperty); MakeBasic(builder, typeof(Control), Control.NameProperty); // Note: Add any new attributes here or into System.Activities.Presentation.Developer / // System.Activities.Presentation.Internal.Metadata.BaseOverridesAttributeTable MetadataStore.AddAttributeTable(builder.CreateTable()); _initialized = true; }
public void Register() { var builder = new AttributeTableBuilder(); builder.ValidateTable(); var categoryAttribute = new CategoryAttribute($"{Resources.Category}"); builder.AddCustomAttributes(typeof(MLScope), categoryAttribute); builder.AddCustomAttributes(typeof(MLScope), new DesignerAttribute(typeof(MLScopeDesigner))); builder.AddCustomAttributes(typeof(MLScope), new HelpKeywordAttribute("https://go.uipath.com")); builder.AddCustomAttributes(typeof(LoadFromTextFile), categoryAttribute); builder.AddCustomAttributes(typeof(LoadFromTextFile), new DesignerAttribute(typeof(LoadFromTextFileDesigner))); builder.AddCustomAttributes(typeof(LoadFromTextFile), new HelpKeywordAttribute("https://go.uipath.com")); builder.AddCustomAttributes(typeof(SaveToTextFile), categoryAttribute); builder.AddCustomAttributes(typeof(SaveToTextFile), new DesignerAttribute(typeof(SaveToTextFileDesigner))); builder.AddCustomAttributes(typeof(SaveToTextFile), new HelpKeywordAttribute("https://go.uipath.com")); builder.AddCustomAttributes(typeof(SelectColumns), categoryAttribute); builder.AddCustomAttributes(typeof(SelectColumns), new DesignerAttribute(typeof(SelectColumnsDesigner))); builder.AddCustomAttributes(typeof(SelectColumns), new HelpKeywordAttribute("https://go.uipath.com")); MetadataStore.AddAttributeTable(builder.CreateTable()); }
static InvokeComMethodActivity() { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(InvokeComMethodActivity), "Arguments", new EditorAttribute(typeof(DictionaryArgumentEditor), typeof(DialogPropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
private void AddMonthViewDesigners() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof (FXMonthView), new FeatureAttribute(typeof (MonthViewDesignAdorner))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
//构造函数自定义属性框 public InsertJS() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(InsertJS), nameof(InsertJS.Parameters), new EditorAttribute(typeof(ArgumentCollectionEditor), typeof(DialogPropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { #region Setup var builder = new AttributeTableBuilder(); builder.ValidateTable(); var categoryAttribute = new CategoryAttribute($"{Resources.Category}"); #endregion Setup builder.AddCustomAttributes(typeof(BitbucketAPIScope), categoryAttribute); builder.AddCustomAttributes(typeof(BitbucketAPIScope), new DesignerAttribute(typeof(BitbucketAPIScopeDesigner))); builder.AddCustomAttributes(typeof(BitbucketAPIScope), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetRepositories), categoryAttribute); builder.AddCustomAttributes(typeof(GetRepositories), new DesignerAttribute(typeof(GetRepositoriesDesigner))); builder.AddCustomAttributes(typeof(GetRepositories), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(ManageRepository), categoryAttribute); builder.AddCustomAttributes(typeof(ManageRepository), new DesignerAttribute(typeof(ManageRepositoryDesigner))); builder.AddCustomAttributes(typeof(ManageRepository), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(CommitFile), categoryAttribute); builder.AddCustomAttributes(typeof(CommitFile), new DesignerAttribute(typeof(CommitFileDesigner))); builder.AddCustomAttributes(typeof(CommitFile), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(GetWorkspaces), categoryAttribute); builder.AddCustomAttributes(typeof(GetWorkspaces), new DesignerAttribute(typeof(GetWorkspacesDesigner))); builder.AddCustomAttributes(typeof(GetWorkspaces), new HelpKeywordAttribute("")); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public static void RegisterTreeViewAttributeTable(ITypeResolver typeResolver) { Type runtimeType = typeResolver.ResolveType(ProjectNeutralTypes.TreeView).RuntimeType; if (runtimeType == (Type)null) { return; } AttributeTableBuilder attributeTableBuilder = new AttributeTableBuilder(); Type treeViewItemType = typeResolver.ResolveType(ProjectNeutralTypes.TreeViewItem).RuntimeType; attributeTableBuilder.AddCallback(runtimeType, (AttributeCallback)(builder => { builder.AddCustomAttributes((Attribute) new StyleTypedPropertyAttribute() { Property = "ItemContainerStyle", StyleTargetType = treeViewItemType }); builder.AddCustomAttributes("SelectedValue", (Attribute) new DataContextValueSourceAttribute("SelectedValuePath", false)); builder.AddCustomAttributes("SelectedValue", (Attribute) new DualDataContextAttribute(true)); builder.AddCustomAttributes("SelectedValuePath", (Attribute) new DataContextPathExtensionAttribute("ItemsSource", true)); builder.AddCustomAttributes("SelectedItem", (Attribute) new DataContextValueSourceAttribute("ItemsSource", true)); builder.AddCustomAttributes("SelectedItem", (Attribute) new DualDataContextAttribute(false)); })); MetadataStore.AddAttributeTable(attributeTableBuilder.CreateTable()); }
public void Register() { AttributeTableBuilder builder = new AttributeTableBuilder(); // Designers builder.AddCustomAttributes(typeof(PythonScope), new DesignerAttribute(typeof(PythonScopeDesigner))); builder.AddCustomAttributes(typeof(LoadScript), new DesignerAttribute(typeof(LoadScriptDesigner))); builder.AddCustomAttributes(typeof(RunScript), new DesignerAttribute(typeof(RunScriptDesigner))); // Browsable false // DisplayNames //Categories CategoryAttribute pythonCategoryAttribute = new CategoryAttribute($"{Resources.CategoryAppInvoker}.{Resources.CategoryPython}"); builder.AddCustomAttributes(typeof(PythonScope), pythonCategoryAttribute); builder.AddCustomAttributes(typeof(RunScript), pythonCategoryAttribute); builder.AddCustomAttributes(typeof(LoadScript), pythonCategoryAttribute); builder.AddCustomAttributes(typeof(InvokeMethod), pythonCategoryAttribute); builder.AddCustomAttributes(typeof(GetObject <>), pythonCategoryAttribute); // Generic TypeArgument Type attrType = Type.GetType("System.Activities.Presentation.FeatureAttribute, System.Activities.Presentation"); Type argType = Type.GetType("System.Activities.Presentation.UpdatableGenericArgumentsFeature, System.Activities.Presentation"); var genericTypeArgument = Activator.CreateInstance(attrType, new object[] { argType }) as Attribute; builder.AddCustomAttributes(typeof(GetObject <>), genericTypeArgument); builder.AddCustomAttributes(typeof(GetObject <>), new DefaultTypeArgumentAttribute(typeof(object))); AddDisplayNameToActivities(builder, typeof(PythonScope).Assembly, nameof(Activity.DisplayName), new DisplayNameAttribute(Resources.DisplayName)); MetadataStore.AddAttributeTable(builder.CreateTable()); }
static DoubleClickActivity() { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(DoubleClickActivity), "KeyModifiers", new EditorAttribute(typeof(KeyModifiersEditor), typeof(PropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
static MessageBoxActivity() { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(MessageBoxActivity), "Buttons", new EditorAttribute(typeof(ButtonsClickTypeEditor), typeof(PropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
static PathExistsActivity() { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(PathExistsActivity), "PathType", new EditorAttribute(typeof(PathTypeEditor), typeof(PathTypeEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(SetConfigurationActivity), new DesignerAttribute(typeof(SetConfigurationActivityDesigner))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
private void AddToolboxBrowsableAttributes() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(NumericUpDown), BrowsableAttribute.Yes); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public RunVBA() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(RunVBA), nameof(RunVBA.Parameters), new EditorAttribute(typeof(DictionaryArgumentEditor), typeof(DialogPropertyValueEditor))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { AttributeTableBuilder atb = new AttributeTableBuilder(); atb.AddCustomAttributes(typeof(CalcShipping), new DesignerAttribute(typeof(CalcShippingDesigner))); MetadataStore.AddAttributeTable(atb.CreateTable()); }
public static void RegisterDatePickerAttributeTable(ITypeResolver typeResolver) { Type runtimeType = typeResolver.ResolveType(ProjectNeutralTypes.DatePicker).RuntimeType; if (runtimeType == (Type)null) { return; } AttributeTableBuilder attributeTableBuilder = new AttributeTableBuilder(); Type calendarType = typeResolver.ResolveType(ProjectNeutralTypes.Calendar).RuntimeType; attributeTableBuilder.AddCallback(runtimeType, (AttributeCallback)(builder => { builder.AddCustomAttributes((Attribute) new StyleTypedPropertyAttribute() { Property = "CalendarStyle", StyleTargetType = calendarType }); builder.AddCustomAttributes("BlackoutDates", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("DisplayDate", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("DisplayDateEnd", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("DisplayDateStart", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("FirstDayOfWeek", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("IsDropDownOpen", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("IsTodayHighlighted", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("SelectedDateFormat", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("Text", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes((Attribute) new ToolboxCategoryAttribute("", true)); })); MetadataStore.AddAttributeTable(attributeTableBuilder.CreateTable()); }
public static void RegisterTabControlAttributeTable(ITypeResolver typeResolver) { Type runtimeType1 = typeResolver.ResolveType(ProjectNeutralTypes.TabControl).RuntimeType; if (runtimeType1 == (Type)null) { return; } AttributeTableBuilder attributeTableBuilder = new AttributeTableBuilder(); Type tabItemType = typeResolver.ResolveType(ProjectNeutralTypes.TabItem).RuntimeType; attributeTableBuilder.AddCallback(runtimeType1, (AttributeCallback)(builder => { builder.AddCustomAttributes((Attribute) new StyleTypedPropertyAttribute() { Property = "ItemContainerStyle", StyleTargetType = tabItemType }); builder.AddCustomAttributes("SelectedIndex", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("SelectedItem", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("TabStripPlacement", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); })); Type runtimeType2 = typeResolver.ResolveType(ProjectNeutralTypes.TabItem).RuntimeType; attributeTableBuilder.AddCallback(runtimeType2, (AttributeCallback)(builder => { builder.AddCustomAttributes("Header", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("IsSelected", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); })); MetadataStore.AddAttributeTable(attributeTableBuilder.CreateTable()); }
public static void RegisterAll() { var builder = new AttributeTableBuilder(); RazorMailSenderDesinger.RegisterMetadata(builder); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public void Register() { var builder = new AttributeTableBuilder(); builder.ValidateTable(); builder.AddCustomAttributes(typeof(IndicoScope), new DesignerAttribute(typeof(IndicoScopeDesigner))); builder.AddCustomAttributes(typeof(IndicoScope), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(ListDatasets), new DesignerAttribute(typeof(ListDatasetsDesigner))); builder.AddCustomAttributes(typeof(ListDatasets), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(DocumentExtraction), new DesignerAttribute(typeof(DocumentExtractionDesigner))); builder.AddCustomAttributes(typeof(DocumentExtraction), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(ListWorkflows), new DesignerAttribute(typeof(ListWorkflowsDesigner))); builder.AddCustomAttributes(typeof(ListWorkflows), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(WorkflowSubmission), new DesignerAttribute(typeof(WorkflowSubmissionDesigner))); builder.AddCustomAttributes(typeof(WorkflowSubmission), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(SubmissionResult), new DesignerAttribute(typeof(SubmissionResultDesigner))); builder.AddCustomAttributes(typeof(SubmissionResult), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(ListSubmissions), new DesignerAttribute(typeof(ListSubmissionsDesigner))); builder.AddCustomAttributes(typeof(ListSubmissions), new HelpKeywordAttribute("")); builder.AddCustomAttributes(typeof(SubmitReview), new DesignerAttribute(typeof(SubmitReviewDesigner))); builder.AddCustomAttributes(typeof(SubmitReview), new HelpKeywordAttribute("")); MetadataStore.AddAttributeTable(builder.CreateTable()); }
/// <summary> /// IRegisterMetadata.Registerの、実装です /// </summary> public void Register() { var builder = new AttributeTableBuilder(); // TODO: クラス(Activity)を追加したら、ここから初期設定をさせます DataTable.CopyToClipboard.SetMetaData(ref builder); DataTable.JointTable.SetMetaData(ref builder); DataTable.ShiftRowsAndColumns.SetMetaData(ref builder); Excel.ReadRecommendSetting.SetMetaData(ref builder); Excel.GetActiveSheetName.SetMetaData(ref builder); File.WaitForFileGrowthCompleted.SetMetaData(ref builder); Convert.SecureString.ToString.SetMetaData(ref builder); Convert.SecureString.FromString.SetMetaData(ref builder); Convert.DataTable.FromDataRowArray.SetMetaData(ref builder); EnvInfo.GetChromeVersion.SetMetaData(ref builder); EnvInfo.GetEdgeVersion.SetMetaData(ref builder); EnvInfo.GetFirefoxVersion.SetMetaData(ref builder); EnvInfo.GetIEVersion.SetMetaData(ref builder); MetadataStore.AddAttributeTable(builder.CreateTable()); }
private void LoadDesigner() { Designer = new WorkflowDesigner(); var tbx = GetToolboxControl(); grid_designsurface.Children.Add(tbx); grid_designsurface.Children.Add(Designer.View); grid_designsurface.Children.Add(Designer.PropertyInspectorView); Grid.SetColumn(tbx, 0); Grid.SetColumn(Designer.View, 1); Grid.SetColumn(Designer.PropertyInspectorView, 2); /** * Load activity designers * **/ (new DesignerMetadata()).Register(); AttributeTableBuilder builder = new AttributeTableBuilder(); //Register Custom Designers. builder.AddCustomAttributes(typeof(CADesigner), new DesignerAttribute(typeof(CADesigner))); MetadataStore.AddAttributeTable(builder.CreateTable()); }
public static void RegisterDragDropTargetAttributeTable(ITypeResolver typeResolver) { AttributeTableBuilder attributeTableBuilder = new AttributeTableBuilder(); ITypeId[] typeIdArray = new ITypeId[3] { ProjectNeutralTypes.DataGridDragDropTarget, ProjectNeutralTypes.ListBoxDragDropTarget, ProjectNeutralTypes.TreeViewDragDropTarget }; foreach (ITypeId typeId in typeIdArray) { Type runtimeType = typeResolver.ResolveType(typeId).RuntimeType; if (runtimeType != (Type)null) { attributeTableBuilder.AddCallback(runtimeType, (AttributeCallback)(builder => { builder.AddCustomAttributes("AllowedSourceEffects", (Attribute) new CategoryAttribute(PresentationFrameworkStringTable.Category_Common_Properties)); builder.AddCustomAttributes("AllowedSourceEffects", (Attribute) new DescriptionAttribute(StringTable.DragDropTargetTypeDescription)); builder.AddCustomAttributes("AllowDrop", (Attribute) new EditorBrowsableAttribute(EditorBrowsableState.Always)); })); } } MetadataStore.AddAttributeTable(attributeTableBuilder.CreateTable()); }
public void Register() { AttributeTableBuilder tableBuilder = new AttributeTableBuilder(); tableBuilder.AddCustomAttributes(typeof(PieChart), new FeatureAttribute(typeof(PieChartDesignModeValueProvider))); MetadataStore.AddAttributeTable(tableBuilder.CreateTable()); }
/// <summary> /// Builds the design time attribute table. /// </summary> /// <returns>Custom attribute table.</returns> private static AttributeTable BuildAttributeTable() { AttributeTableBuilder builder = new AttributeTableBuilder(); AddAttributes(builder); return builder.CreateTable(); }
/// <summary> /// Build design time metadata attribute table. /// </summary> /// <returns>Custom attribute table.</returns> protected virtual AttributeTable BuildAttributeTable() { AttributeTableBuilder builder = new AttributeTableBuilder(); AddDescriptions(builder); AddAttributes(builder); AddTables(builder); return builder.CreateTable(); }
/// <summary> /// Build design time metadata attribute table. /// </summary> /// <returns>Custom attribute table.</returns> protected virtual AttributeTable BuildAttributeTable() { AttributeTableBuilder builder = new AttributeTableBuilder(); AddDescriptions(builder); AddAttributes(builder); AddTables(builder, this); masterMetadataTable = builder.CreateTable(); return masterMetadataTable; }
public VectorMetadata() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof (Node), "Position", PropertyValueEditor.CreateEditorAttribute(typeof (VectorEditor)), new AlternateContentPropertyAttribute() ); AttributeTable = builder.CreateTable(); }
private void AddToolboxBrowsableAttributes() { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(DataGridCell), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridCellsPanel), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridCellsPresenter), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridColumnHeader), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridColumnHeadersPresenter), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridDetailsPresenter), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridHeaderBorder), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridRow), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridRowHeader), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DataGridRowsPresenter), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(SelectiveScrollingGrid), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(CalendarButton), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(CalendarDayButton), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(CalendarItem), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(DatePickerTextBox), ToolboxBrowsableAttribute.No); MetadataStore.AddAttributeTable(builder.CreateTable()); }
private void AddToolboxBrowsableAttributes() { var builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(FXMonthViewButton), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(FXMonthViewContainer), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(FXMonthViewHeader), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(FXMonthViewItem), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(FXMonthViewWeekDayHeaderCell), ToolboxBrowsableAttribute.No); builder.AddCustomAttributes(typeof(FXPopup), ToolboxBrowsableAttribute.No); MetadataStore.AddAttributeTable(builder.CreateTable()); }
void RegisterMetadata() { AttributeTableBuilder builder = new AttributeTableBuilder(); // Register Designers. builder.AddCustomAttributes(typeof(Sequence), new DesignerAttribute(typeof(SequenceDesigner))); // Apply the metadata MetadataStore.AddAttributeTable(builder.CreateTable()); }
/// <summary> /// Return the attribute table that is applied to design time. /// </summary> public void Register() { AttributeTableBuilder builder = new AttributeTableBuilder(); LayoutMetadata.AddAttributes(builder); MetadataStore.AddAttributeTable(builder.CreateTable()); }