private void ShowEventSettingInfo(Appointment e, bool newEvent) { MainWindowViewModel o1 = this.vm1; EventSettings wnd = new EventSettings(); EventSettingsWindowViewModel s = wnd.vm1; if (newEvent) { s.LoadNewEventInfo(e, o1.CalendarModel); } else { s.LoadEventInfo(e, o1.CalendarModel); } bool?res = wnd.ShowDialog(); }
public void Initialize() { vm = new EventSettingsWindowViewModel(); calendarMock = MockRepository.GenerateMock <ICalendar>(); vm.CalendarModel = calendarMock; }