private void OpenNewUserFlyout() { var parameters = new FlayoutParamaters { FlyoutEntityId = 0, FlyoutName = FlyoutNames.UserAuthenticationFlyoutView }; var flyoutService = new FlyoutService(_regionManager, _applicationCommands); flyoutService.ShowFlyout(parameters); }
private void OpenNewWorkspaceFlyout(int?id) { int newId = 0; if (id != null) { newId = (int)id; } //TODO: Check if open var parameters = new FlayoutParamaters { FlyoutEntityId = newId, FlyoutName = FlyoutNames.ProjectWorkspaceDetailsFlyoutView }; var flyoutService = new FlyoutService(_regionManager, _applicationCommands); flyoutService.SetDataContext(parameters, new ProjectWorkspaceDetailsFlyoutViewModel(_projectRepository) { EntityId = parameters.FlyoutEntityId }); flyoutService.ShowFlyout(parameters); }