Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     vm               = new EventSettingsWindowViewModel();
     calendarMock     = MockRepository.GenerateMock <ICalendar>();
     vm.CalendarModel = calendarMock;
 }