private void AddNewEntryCtrl(DbTableNewEntryCreatorVM vm) { _newEntryCreatorCtrl = new DbTableNewEntryCreatorCtrl(); _newEntryCreatorCtrl.Dock = DockStyle.Bottom; this.Controls.Add(_newEntryCreatorCtrl); _newEntryCreatorCtrl.Initialize(vm); }
private void RemoveNewEntryCtrl() { if (_newEntryCreatorCtrl == null) { throw new InvalidOperationException(); } this.Controls.Remove(_newEntryCreatorCtrl); _newEntryCreatorCtrl = null; }