// CopyTo protected override void CopyTo(WidgetBase o) { base.CopyTo(o); WidgetFPS oo = (WidgetFPS)o; oo.FontStyle = FontStyle.Copy(); oo.StringUI.Add(StringUI); oo.FrameRate = FrameRate; oo.FrameCounter = FrameCounter; oo.ElapsedTime = ElapsedTime; }