Exemplo n.º 1
0
        /// <summary>
        /// Gets the <see cref="CompartmentDescription"/>s which will create the compartments in this <see cref="BarkerEntityShape"/>.
        /// </summary>
        /// <returns>CompartmentDescription[]</returns>
        public override CompartmentDescription[] GetCompartmentDescriptions()
        {
            CompartmentDescription[] retVal = myCompartmentDescriptions;
            if (retVal == null)
            {
                myCompartmentDescriptions = retVal = new CompartmentDescription[1];
                string title = BarkerERShapeDomainModel.SingletonResourceManager.GetString("BarkerEntityShapeAttributesCompartmentTitle");
                retVal[0] = new AttributeElementListCompartmentDescription("AttributesCompartment", title,
                                                                           Color.FromKnownColor(KnownColor.LightGray), false,
                                                                           Color.FromKnownColor(KnownColor.White), false,
                                                                           null, null,
                                                                           false);
            }

            return(myCompartmentDescriptions);
        }
		/// <summary>
		/// Gets the <see cref="CompartmentDescription"/>s which will create the compartments in this <see cref="BarkerEntityShape"/>.
		/// </summary>
		/// <returns>CompartmentDescription[]</returns>
		public override CompartmentDescription[] GetCompartmentDescriptions()
		{
			CompartmentDescription[] retVal = myCompartmentDescriptions;
			if (retVal == null)
			{
				myCompartmentDescriptions = retVal = new CompartmentDescription[1];
				string title = BarkerERShapeDomainModel.SingletonResourceManager.GetString("BarkerEntityShapeAttributesCompartmentTitle");
				retVal[0] = new AttributeElementListCompartmentDescription("AttributesCompartment", title,
					Color.FromKnownColor(KnownColor.LightGray), false,
					Color.FromKnownColor(KnownColor.White), false,
					null, null,
					false);
			}

			return myCompartmentDescriptions;
		}