public CalenderItemDetailDialog() { InitializeComponent(); data = ApplicationData.Get(); dto = null; date.SelectedDate = DateTime.Now; comboType.ItemsSource = Enum.GetValues(typeof(CalendarItemType)); comboType.SelectedValue = CalendarItemType.Task; comboCategory.ItemsSource = data.categoryStore.CalendarItems.Values; comboCategory.SelectedItem = data.categoryStore.CalendarItems[1]; name.Focus(); }
public MainWindow() { InitializeComponent(); controlCalender.generateCalenderBoxes(); appData = ApplicationData.Get(); appData.LoadAll(); controlCalender.SetData(ref appData); controlCalender.Refresh(); CatagoryFilter.ItemsSource = appData.categoryStore.CalendarItems.Values; dataGridItems.Items.Clear(); Registry.SetUpRegistry(); }
public void SetData(ref ApplicationData data) { this.appData = data; appData.calendarItemStore.ItemAddedEvt += Store_ItemAddedEvt; appData.calendarItemStore.ItemsAddedEvt += Store_ItemsAddedEvt; }