コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        public void SetData(ref ApplicationData data)
        {
            this.appData = data;

            appData.calendarItemStore.ItemAddedEvt += Store_ItemAddedEvt;
            appData.calendarItemStore.ItemsAddedEvt += Store_ItemsAddedEvt;
        }