public static void OpenCycleModal(CycleSelectionViewModel modal) { cycleModal = new CycleModalView { Owner = mainWindow, DataContext = modal }; cycleModal.Closed += (sender, args) => CommandEventBinder.CloseCyclesModalCommand.Execute(); cycleModal.ShowDialog(); }
public static void CloseCycleModal() { cycleModal.Close(); cycleModal = null; }