public void InitializeEx(GME.MGA.MgaProject p, GME.MGA.Meta.MgaMetaPart meta, GME.MGA.MgaFCO obj, GME.IMgaCommonDecoratorEvents eventSink, ulong parentWnd) { Project = p; MetaPart = meta; MgaObject = obj; unchecked { parentHwnd = (IntPtr)(int)parentWnd; } if (MgaObject != null) { Label = MgaObject.Name; } else { Label = MetaPart.DisplayedName; } using (Graphics g = Graphics.FromHwnd(parentHwnd)) { LabelSize = g.MeasureString(Label, LabelFont); } }
public void Initialize(GME.MGA.MgaProject p, GME.MGA.Meta.MgaMetaPart meta, GME.MGA.MgaFCO obj) { InitializeEx(p, meta, obj, null, 0); }