protected void DoCreate() { this.m_CreationTime = DateTime.Now; this.m_Creating = true; this.m_DefaultReadBack = false; this.UpdateFrameRate = 50.0; UpdateRateTimer.AddControl(this); try { this.AutoSize = true; base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true); this.ModifyStyle(); base.UpdateStyles(); this.m_Border = new BorderControl(); this.AddSubClass(this.Border); this.CreateObjects(); } finally { this.m_Creating = false; } this.m_SettingDefaults = true; try { if (this.m_SubClassList != null) { foreach (ISubClassBase subClass in this.m_SubClassList) { subClass.SettingDefaults = true; } } this.SetDefaults(); this.Size = this.GetDefaultSize(); if (this.m_SubClassList != null) { foreach (ISubClassBase subClass2 in this.m_SubClassList) { subClass2.SettingDefaults = false; } } } finally { this.m_SettingDefaults = false; } this.m_AfterCreating = true; try { this.AfterCreate(); } finally { this.m_AfterCreating = false; } }
protected override void CreateObjects() { base.CreateObjects(); this.m_Border = new BorderControl(); }