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