/// <summary> /// Evento di chiusura della view Gestione gestioni /// </summary> /// <param name="param">La view che ha inviato l'evento</param> public void CloseMe(object param) { RegistryOwnerView ROV = param as RegistryOwnerView; DockPanel wp = ROV.Parent as DockPanel; wp.Children.Remove(ROV); }
private void OpenGestioni(object param) { DockPanel mainGrid = param as DockPanel; if (ownerView == null || !mainGrid.Children.Contains(shareTypeView)) { ownerViewModel = new RegistryOwnerViewModel(_registryServices); ownerView = new RegistryOwnerView(ownerViewModel); mainGrid.Children.Add(ownerView); } else { ownerView = null; ownerViewModel = null; } }