/// <summary>
        /// Draw the various constraint types
        /// </summary>
        /// <param name="e">DiagramPaintEventArgs</param>
        public sealed override void OnPaintShape(DiagramPaintEventArgs e)
        {
            if (null == Utility.ValidateStore(Store))
            {
                return;
            }

            base.OnPaintShape(e);
            PaintHelper helper = new PaintHelper(e, this);

            try
            {
                OnPaintShape(e, ref helper);
            }
            finally
            {
                helper.Dispose();
            }
        }
Example #2
0
		/// <summary>
		/// Draw the various constraint types
		/// </summary>
		/// <param name="e">DiagramPaintEventArgs</param>
		public sealed override void OnPaintShape(DiagramPaintEventArgs e)
		{
			if (null == Utility.ValidateStore(Store))
			{
				return;
			}

			base.OnPaintShape(e);
			PaintHelper helper = new PaintHelper(e, this);
			try
			{
				OnPaintShape(e, ref helper);
			}
			finally
			{
				helper.Dispose();
			}
		}