Ejemplo n.º 1
0
 private void AddNewEntryCtrl(DbTableNewEntryCreatorVM vm)
 {
     _newEntryCreatorCtrl      = new DbTableNewEntryCreatorCtrl();
     _newEntryCreatorCtrl.Dock = DockStyle.Bottom;
     this.Controls.Add(_newEntryCreatorCtrl);
     _newEntryCreatorCtrl.Initialize(vm);
 }
Ejemplo n.º 2
0
        private void RemoveNewEntryCtrl()
        {
            if (_newEntryCreatorCtrl == null)
            {
                throw new InvalidOperationException();
            }

            this.Controls.Remove(_newEntryCreatorCtrl);
            _newEntryCreatorCtrl = null;
        }