Пример #1
0
        public Data()
        {
            var set = new TimetableSetting();

            this.setting  = set;
            lecttime      = new List <LectTime>();
            lectid        = new List <List <int> >();
            taskid        = new List <int>();
            lectures      = new Dictionary <int, Lecture>();
            tasks         = new Dictionary <int, Task>();
            lectures_list = new List <Lecture>();
            tasks_list    = new List <Task>();
        }
Пример #2
0
        void SetWindowConf()
        {
            set = MainWindow.data.setting;



            _viewModel.period = set.period;

            _viewModel.day_st = set.day_st;
            _viewModel.day_en = set.day_en;

            _viewModel.timer_music = set.timer_music;

            _viewModel.display_mon = set.display_mon;
            _viewModel.display_tue = set.display_tue;
            _viewModel.display_wed = set.display_wed;
            _viewModel.display_thu = set.display_thu;
            _viewModel.display_fri = set.display_fri;
            _viewModel.display_sat = set.display_sat;


            List <Obj_Combobox> tmp = new List <Obj_Combobox>();

            tmp.Add(CreateTFObj(true, "表示"));
            tmp.Add(CreateTFObj(false, "非表示"));

            _viewModel.obj_tf = tmp;

            tmp = new List <Obj_Combobox>();

            tmp.Add(CreateDayObj(0, "今日"));
            tmp.Add(CreateDayObj(1, "1日前"));
            tmp.Add(CreateDayObj(2, "2日前"));
            tmp.Add(CreateDayObj(3, "3日前"));

            _viewModel.obj_day_st = tmp;

            tmp = new List <Obj_Combobox>();

            tmp.Add(CreateDayObj(0, "今日"));
            tmp.Add(CreateDayObj(1, "1日後"));
            tmp.Add(CreateDayObj(2, "2日後"));
            tmp.Add(CreateDayObj(3, "3日後"));

            _viewModel.obj_day_en = tmp;

            this.DataContext = _viewModel;
        }