本文整理汇总了C#中global.Add方法的典型用法代码示例。如果您正苦于以下问题:C# global.Add方法的具体用法?C# global.Add怎么用?C# global.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类global
的用法示例。
在下文中一共展示了global.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("TargetMultiplicity");
field1.DefaultText = global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("AssociationConnectorTargetMultiplicityDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator1 = new DslDiagrams::ConnectorDecorator(field1, DslDiagrams::ConnectorDecoratorPosition.TargetBottom, DslDiagrams::PointD.Empty);
decorators.Add(decorator1);
DslDiagrams::TextField field2 = new DslDiagrams::TextField("SourceMultiplicity");
field2.DefaultText = global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("AssociationConnectorSourceMultiplicityDefaultText");
field2.DefaultFocusable = true;
field2.DefaultAutoSize = true;
field2.AnchoringBehavior.MinimumHeightInLines = 1;
field2.AnchoringBehavior.MinimumWidthInCharacters = 1;
field2.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator2 = new DslDiagrams::ConnectorDecorator(field2, DslDiagrams::ConnectorDecoratorPosition.SourceBottom, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
DslDiagrams::TextField field3 = new DslDiagrams::TextField("TargetRoleName");
field3.DefaultText = global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("AssociationConnectorTargetRoleNameDefaultText");
field3.DefaultFocusable = true;
field3.DefaultAutoSize = true;
field3.AnchoringBehavior.MinimumHeightInLines = 1;
field3.AnchoringBehavior.MinimumWidthInCharacters = 1;
field3.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator3 = new DslDiagrams::ConnectorDecorator(field3, DslDiagrams::ConnectorDecoratorPosition.TargetTop, DslDiagrams::PointD.Empty);
decorators.Add(decorator3);
DslDiagrams::TextField field4 = new DslDiagrams::TextField("SourceRoleName");
field4.DefaultText = global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("AssociationConnectorSourceRoleNameDefaultText");
field4.DefaultFocusable = true;
field4.DefaultAutoSize = true;
field4.AnchoringBehavior.MinimumHeightInLines = 1;
field4.AnchoringBehavior.MinimumWidthInCharacters = 1;
field4.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator4 = new DslDiagrams::ConnectorDecorator(field4, DslDiagrams::ConnectorDecoratorPosition.SourceTop, DslDiagrams::PointD.Empty);
decorators.Add(decorator4);
}
示例2: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("SubProcessGuid");
field1.DefaultText = string.Empty;
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field1);
}
示例3: GetTypedTableSchema
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
EMDataSet ds = new EMDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CompanyTblDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
示例4: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("Comment");
field1.DefaultText = global::LinqToRdf.Design.LinqToRdfDomainModel.SingletonResourceManager.GetString("CommentBoxShapeCommentDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field1);
}
示例5: ResolveSchema
/// <summary>
/// Attempts to resolve the supplied schema namespace
/// </summary>
/// <remarks>If the schema can be resolved it is added to the supplied schema set. Otherwise, a
/// warning will be written to serializationContext.
/// </remarks>
/// <returns>A flag indicating whether the schema was resolved or not</returns>
protected static bool ResolveSchema(string targetNamespace, global::System.Xml.Schema.XmlSchemaSet schemaSet, DslModeling::ISchemaResolver schemaResolver, global::System.Xml.XmlReader reader, DslModeling::SerializationContext serializationContext)
{
global::System.Collections.Generic.IList<string> schemas = schemaResolver.ResolveSchema(targetNamespace);
if (schemas != null && schemas.Count > 0)
{
if (schemas.Count > 1)
{
HostDesignerSerializationBehaviorSerializationMessages.AmbiguousSchema(serializationContext, reader, targetNamespace, schemas[0]);
}
schemaSet.Add(targetNamespace, schemas[0]);
return true;
}
HostDesignerSerializationBehaviorSerializationMessages.NoSchema(serializationContext, reader, targetNamespace);
return false;
}
示例6: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("TargetMultiplicity");
field1.DefaultText = global::AgileFx.AgileModeler.AgileModelerDomainModel.SingletonResourceManager.GetString("AssociationConnectorTargetMultiplicityDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
field1.DefaultFontId = new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold7");
DslDiagrams::Decorator decorator1 = new DslDiagrams::ConnectorDecorator(field1, DslDiagrams::ConnectorDecoratorPosition.TargetBottom, DslDiagrams::PointD.Empty);
decorators.Add(decorator1);
DslDiagrams::TextField field2 = new DslDiagrams::TextField("SourceMultiplicity");
field2.DefaultText = global::AgileFx.AgileModeler.AgileModelerDomainModel.SingletonResourceManager.GetString("AssociationConnectorSourceMultiplicityDefaultText");
field2.DefaultFocusable = true;
field2.DefaultAutoSize = true;
field2.AnchoringBehavior.MinimumHeightInLines = 1;
field2.AnchoringBehavior.MinimumWidthInCharacters = 1;
field2.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
field2.DefaultFontId = new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold7");
DslDiagrams::Decorator decorator2 = new DslDiagrams::ConnectorDecorator(field2, DslDiagrams::ConnectorDecoratorPosition.SourceBottom, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
}
示例7: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::ShapeField field1 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "TextNombre");
DslDiagrams::Decorator decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);
decorators.Add(decorator1);
DslDiagrams::ShapeField field2 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "TextColor");
DslDiagrams::Decorator decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
DslDiagrams::ShapeField field3 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "TextOutput");
DslDiagrams::Decorator decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);
decorators.Add(decorator3);
DslDiagrams::ShapeField field4 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "TextEstilo");
DslDiagrams::Decorator decorator4 = new DslDiagrams::ShapeDecorator(field4, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);
decorators.Add(decorator4);
}
示例8: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("KeyDecorator");
field1.DefaultText = global::Navigation.Designer.NavigationLanguageDomainModel.SingletonResourceManager.GetString("TransitionConnectorKeyDecoratorDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator1 = new DslDiagrams::ConnectorDecorator(field1, DslDiagrams::ConnectorDecoratorPosition.TargetTop, DslDiagrams::PointD.Empty);
decorators.Add(decorator1);
DslDiagrams::ImageField field2 = new DslDiagrams::ImageField("CanGoBackDecorator");
field2.DefaultImage = DslDiagrams::ImageHelper.GetImage(global::Navigation.Designer.NavigationLanguageDomainModel.SingletonResourceManager.GetObject("TransitionConnectorCanGoBackDecoratorDefaultImage"));
DslDiagrams::Decorator decorator2 = new DslDiagrams::ConnectorDecorator(field2, DslDiagrams::ConnectorDecoratorPosition.SourceBottom, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
}
示例9: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
DslDiagrams::ImageField field1 = new DslDiagrams::ImageField("Image");
field1.DefaultImage = DslDiagrams::ImageHelper.GetImage(global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerDomainModel.SingletonResourceManager.GetObject("EndpointPortShapeImageDefaultImage"));
shapeFields.Add(field1);
}
示例10: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::ShapeField field1 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Type");
DslDiagrams::Decorator decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, new DslDiagrams::PointD(0.2, 0.15));
decorators.Add(decorator1);
DslDiagrams::ShapeField field2 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "TypeIcon");
DslDiagrams::Decorator decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
}
示例11: InitializeDecorators
/// <summary>
/// Initialize the collection of decorators associated with this shape type. This method also
/// creates shape fields for outer decorators, because these are not part of the shape fields collection
/// associated with the shape, so they must be created here rather than in InitializeShapeFields.
/// </summary>
protected override void InitializeDecorators(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators)
{
base.InitializeDecorators(shapeFields, decorators);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("NameDecorator");
field1.DefaultText = global::Architect.CloudCoreArchitectSubProcessDomainModel.SingletonResourceManager.GetString("DatabaseBatchWaitShapeNameDecoratorDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
DslDiagrams::Decorator decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.OuterBottomCenter, DslDiagrams::PointD.Empty);
decorators.Add(decorator1);
DslDiagrams::ShapeField field2 = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "SubProcessGuid");
DslDiagrams::Decorator decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerTopCenter, DslDiagrams::PointD.Empty);
decorators.Add(decorator2);
}
示例12: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("TextNombre");
field1.DefaultText = global::Company.DSLBootstrap.DSLBootstrapDomainModel.SingletonResourceManager.GetString("FEtiquetaTextNombreDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field1);
DslDiagrams::TextField field2 = new DslDiagrams::TextField("TextColor");
field2.DefaultText = global::Company.DSLBootstrap.DSLBootstrapDomainModel.SingletonResourceManager.GetString("FEtiquetaTextColorDefaultText");
field2.DefaultFocusable = true;
field2.DefaultAutoSize = true;
field2.AnchoringBehavior.MinimumHeightInLines = 1;
field2.AnchoringBehavior.MinimumWidthInCharacters = 1;
field2.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field2);
DslDiagrams::TextField field3 = new DslDiagrams::TextField("TextOutput");
field3.DefaultText = global::Company.DSLBootstrap.DSLBootstrapDomainModel.SingletonResourceManager.GetString("FEtiquetaTextOutputDefaultText");
field3.DefaultFocusable = true;
field3.DefaultAutoSize = true;
field3.AnchoringBehavior.MinimumHeightInLines = 1;
field3.AnchoringBehavior.MinimumWidthInCharacters = 1;
field3.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field3);
DslDiagrams::TextField field4 = new DslDiagrams::TextField("TextEstilo");
field4.DefaultText = global::Company.DSLBootstrap.DSLBootstrapDomainModel.SingletonResourceManager.GetString("FEtiquetaTextEstiloDefaultText");
field4.DefaultFocusable = true;
field4.DefaultAutoSize = true;
field4.AnchoringBehavior.MinimumHeightInLines = 1;
field4.AnchoringBehavior.MinimumWidthInCharacters = 1;
field4.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field4);
}
示例13: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
ImageField titleIconField = new ImageField("WidgetTitleIcon");
titleIconField.DefaultSelectable = false;
titleIconField.DefaultFocusable = false;
//titleIconField.DefaultImage = ImageHelper.GetImage(MVCViewDesignerDomainModel.SingletonResourceManager.GetObject("GridLayoutToolToolboxBitmap"));
titleIconField.AnchoringBehavior.SetTopAnchor(AnchoringBehavior.Edge.Top, 0.02);
titleIconField.AnchoringBehavior.SetLeftAnchor(AnchoringBehavior.Edge.Left, 0.02);
shapeFields.Add(titleIconField);
TextField titleTextField = new TextField("WidgetTitleText");
titleTextField.DefaultText = string.Empty;
titleTextField.DefaultFocusable = true;
titleTextField.DefaultAutoSize = true;
titleTextField.AnchoringBehavior.MinimumHeightInLines = 1;
titleTextField.AnchoringBehavior.MinimumWidthInCharacters = 1;
titleTextField.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
titleTextField.AnchoringBehavior.SetTopAnchor(AnchoringBehavior.Edge.Top, 0.02);
titleTextField.AnchoringBehavior.SetLeftAnchor(titleIconField, AnchoringBehavior.Edge.Right, 0.02);
titleTextField.DefaultFontId = new StyleSetResourceId(string.Empty, "ShapeTextBold9");
shapeFields.Add(titleTextField);
// more title icons
ShapeField leftSibling = titleTextField;
for (int i = 0; i < ADDITIONAL_TITLE_ICON_COUNT; i++)
{
VDTitleImageField moreTitleIconField = new VDTitleImageField("WidgetTitleIcon" + i, i);
moreTitleIconField.DefaultSelectable = false;
moreTitleIconField.DefaultFocusable = false;
moreTitleIconField.AnchoringBehavior.SetTopAnchor(AnchoringBehavior.Edge.Top, 0.02);
moreTitleIconField.AnchoringBehavior.SetLeftAnchor(leftSibling, AnchoringBehavior.Edge.Right, 0.02);
shapeFields.Add(moreTitleIconField);
leftSibling = moreTitleIconField;
}
PinButtonField pinField = new PinButtonField("WidgetTitlePinIcon");
pinField.AnchoringBehavior.SetTopAnchor(AnchoringBehavior.Edge.Top, 0.02);
pinField.AnchoringBehavior.SetRightAnchor(AnchoringBehavior.Edge.Right, 0.02);
pinField.DefaultSelectable = false;
pinField.DefaultFocusable = false;
shapeFields.Add(pinField);
}
示例14: InitializeShapeFields
/// <summary>
/// Initialize the collection of shape fields associated with this shape type.
/// </summary>
protected override void InitializeShapeFields(global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields)
{
base.InitializeShapeFields(shapeFields);
DslDiagrams::TextField field1 = new DslDiagrams::TextField("NameDecorator");
field1.DefaultText = global::Evaluant.Uss.SqlMapper.Mapping.SqlMapperMappingDomainModel.SingletonResourceManager.GetString("EntityShapeNameDecoratorDefaultText");
field1.DefaultFocusable = true;
field1.DefaultAutoSize = true;
field1.AnchoringBehavior.MinimumHeightInLines = 1;
field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
shapeFields.Add(field1);
DslDiagrams::ChevronButtonField field2 = new DslDiagrams::ChevronButtonField("ExpandCollapseDecorator");
field2.DefaultSelectable = false;
field2.DefaultFocusable = false;
shapeFields.Add(field2);
}
示例15: Add
/// <summary>
/// Invokes the 'Add' method of the specified <see cref="CalculatorValue"/> entity.
/// </summary>
/// <param name="value">The <see cref="CalculatorValue"/> entity instance.</param>
/// <param name="rhs">The value for the 'rhs' parameter for this action.</param>
public void Add(global::TestDomainServices.NamedUpdates.CalculatorValue value, decimal rhs)
{
value.Add(rhs);
}