Пример #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;
		}
Пример #3
0
		/// <summary>
		/// Gets the <see cref="CompartmentDescription"/>s which will create the compartments in this <see cref="TableShape"/>.
		/// </summary>
		/// <returns>CompartmentDescription[]</returns>
		public override CompartmentDescription[] GetCompartmentDescriptions()
		{
			CompartmentDescription[] retVal = myCompartmentDescriptions;
			if (retVal == null)
			{
				myCompartmentDescriptions = retVal = new CompartmentDescription[1];
				string title = RelationalShapeDomainModel.SingletonResourceManager.GetString("TableShapeColumnsCompartmentTitle");
				retVal[0] = new ColumnElementListCompartmentDescription("ColumnsCompartment", title,
					Color.FromKnownColor(KnownColor.LightGray), false,
					Color.FromKnownColor(KnownColor.White), false,
					null, null,
					false);
			}

			return myCompartmentDescriptions;
		}