public override void Initialize(PropertiesModel.Property property) { base.Initialize(property); m_toggle = new MetroToggle(); MetroSkinManager.ApplyMetroStyle(m_toggle); m_toggle.Cursor = Cursors.Hand; m_toggle.Width = 0; m_toggle.Dock = DockStyle.Top; m_toggle.CheckedChanged += m_toggle_CheckedChanged; Content.Controls.Add(m_toggle); UpdateEditor(); }
public override void Clear() { base.Clear(); m_toggle = null; }