Пример #1
0
        public AddEventReminderView(List<EventModel> events, EventReminderModel eventReminder = null)
        {
            InitializeComponent();
            DataContext = ViewModel = new AddEventReminderViewModel(events, eventReminder);

            Owner = Application.Current.MainWindow;

            Loaded += OnAddEventReminderViewLoaded;
        }
Пример #2
0
 public AddEventReminderView(EventReminderModel eventReminder = null)
 {
     InitializeComponent();
     DataContext = ViewModel = new AddEventReminderViewModel(eventReminder);
     if (eventReminder != null)
         this.Header = "Edit Event Reminder";
     Owner = Application.Current.MainWindow;
     Loaded += OnAddEventReminderViewLoaded;
 }