public void RegisterView(ViewType type, Control bigControl,Control smallControl) { View view = new View(type, bigControl, smallControl); if (view.BigControl != null) view.BigControl.Visible = false; if (view.SmallControl != null) view.SmallControl.Visible = false; RegisterView(view); }
/// <summary> /// register a view /// </summary> /// <param name="view"></param> /// <param name="ctl"></param> public void RegisterView(View view) { m_RegisteredViews[view.Type] = view; FireViewListChange(); }