private void OnStorageClick(object sender, RoutedEventArgs e) { StorageWindow sw = new StorageWindow(); sw.Owner = this; sw.Show(); }
public void ShowStorageWindow(AppViewModel appViewModel, List <WorkspaceViewModel> workspaces) { var dataContext = containerExtension.Resolve <StorageViewModel>(); dataContext.PrepareAndSetWorkspaces(appViewModel, workspaces); var window = new StorageWindow(dataContext); window.Show(); }