Esempio n. 1
0
        public MainWindow()
        {
            Tasks t = new Tasks();
            TaskData td;
            MyTaskList = new TaskDataList();

            InitializeComponent();

            foreach (string s in t.RetrieveDistinctTaskCategories())
            {
                td = new TaskData();
                td.Category = s;
                MyTaskList.Add(td);
            }

            this.DataContext = this;
        }