Example #1
0
        //public void RemoveWidgetFromDom(Guid wdgGID)
        public void RemoveWidgetFromDom(WidgetViewModBase wdg)
        {
            if (_activeView == null)
            {
                return;
            }
            Guid wdgGID = wdg.widgetGID;

            IsDirty = true;

            if (wdg is MasterWidgetViewModel)
            {
                _activeView.DeleteMaster(wdgGID);
            }
            else
            {
                _activeView.DeleteWidget(wdgGID);
            }
        }