/// <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) { RegistryFirmView RFV = param as RegistryFirmView; DockPanel wp = RFV.Parent as DockPanel; wp.Children.Remove(RFV); }
private void OpenAziende(object param) { DockPanel mainGrid = param as DockPanel; if (firmView == null || !mainGrid.Children.Contains(firmView)) { registryFirmViewModel = new RegistryFirmViewModel(_registryServices); firmView = new RegistryFirmView(registryFirmViewModel); mainGrid.Children.Add(firmView); } else { mainGrid.Children.Remove(firmView); firmView = null; registryFirmViewModel = null; } }