コード例 #1
0
 public ViewModel()
 {
     //Days added in the collection
     DaysCollection.Add("Sunday");
     DaysCollection.Add("Monday");
     DaysCollection.Add("Tuesday");
     DaysCollection.Add("Wednesday");
     DaysCollection.Add("Thursday");
     DaysCollection.Add("Friday");
     DaysCollection.Add("Saturday");
 }
コード例 #2
0
        public void Reinitialize()
        {
            Collection.Clear();
            DaysCollection.Clear();
            var t0 = Table.StartTime.Date;
            var t1 = Table.EndTime.Date;

            foreach (DateTime day in FileChangeTable.EachDay(t0, t1))
            {
                DaysCollection.Add(new FileChangeDay(day, this));
            }
        }
コード例 #3
0
        public MainWindow()
        {
            InitializeComponent();

            dc.Add(new ComboTemplate <string>(false, "Select All"));
            dc.Add(new ComboTemplate <string>(false, "Sunday"));
            dc.Add(new ComboTemplate <string>(false, "Monday"));
            dc.Add(new ComboTemplate <string>(false, "Tuesday"));
            dc.Add(new ComboTemplate <string>(true, "Wednesday"));
            dc.Add(new ComboTemplate <string>(false, "Thursday"));
            dc.Add(new ComboTemplate <string>(false, "Friday"));
            dc.Add(new ComboTemplate <string>(false, "Saturday"));
            customcombo.ItemsSource = dc;
        }