Example #1
0
        public GtdDataSource()
        {
            Windows.Storage.ApplicationDataContainer roamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings;
            if (roamingSettings.Values.ContainsKey("Things"))
            {
                _gtdDataSource.AllGroups = (ObservableCollection <GtdDataGroup>)roamingSettings.Values["Things"];
            }
            else
            {
                var asap = new GtdDataGroup("ASAP",
                                            "ASAP",
                                            "As Soon As Possible",
                                            "Assets/DarkGray.png",
                                            "Things which needs to be done as soon as possible.");

                asap.Items.Add(new GtdDataItem("Work out",
                                               "Work out",
                                               "",
                                               "",
                                               "40 pushups",
                                               "Do 40 pushups withoud breaks",
                                               asap));

                this.AllGroups.Add(asap);


                var waiting = new GtdDataGroup("Waiting",
                                               "Waiting",
                                               "Waiting for possibility to be done",
                                               "Assets/LightGray.png",
                                               "List of things which can not be done already. There are waiting for somebody action or some event etc.");

                waiting.Items.Add(new GtdDataItem("Pay Bills",
                                                  "Pay bills",
                                                  "",
                                                  "",
                                                  "Pay bills for december",
                                                  "Waiting for recipt.",
                                                  waiting));

                this.AllGroups.Add(waiting);


                var calendar = new GtdDataGroup("Calendar",
                                                "Calendar",
                                                "Scheduled things",
                                                "Assets/MediumGray.png",
                                                "These things should be done in specified terms.");

                calendar.Items.Add(new GtdDataItem("Hairdresser",
                                                   "Hairdresser",
                                                   "Friday, 5pm",
                                                   "",
                                                   "Go to hairdresser",
                                                   "Ask for short hairs!",
                                                   calendar));

                this.AllGroups.Add(calendar);


                var projects = new GtdDataGroup("Projects",
                                                "Projects",
                                                "Larger affairs",
                                                "Assets/LightGray.png",
                                                "Category for things which require more than one action.");

                projects.Items.Add(new GtdDataItem("Learn Windows 8",
                                                   "Learn Windows 8",
                                                   "",
                                                   "",
                                                   "Watch tutorial for total beginners, create 3 store app and publish to Market.",
                                                   "1. Tutorial for total beginners at Channel 9\n\n 2. dev.windows.com\n\n 3. Create development account\n\n 4. Create 3 games and publish to Market",
                                                   projects));
                projects.Items.Add(new GtdDataItem("Learn Ruby",
                                                   "Learn Ruby",
                                                   "",
                                                   "",
                                                   "Learn Ruby language and Ruby on Rails framework for Web Development",
                                                   "1. Go through Ruby basics\n\n 2. Watch Ruby on Rails tutorial from h:/tutorials/ruby\n\n 3. Create simple internet store app",
                                                   projects));
                this.AllGroups.Add(projects);


                var future = new GtdDataGroup("FutureMaybe",
                                              "Future/Maybe",
                                              "Do not know when/if to do",
                                              "Assets/MediumGray.png",
                                              "Things which will be done in future or not. ");

                future.Items.Add(new GtdDataItem("Start Blog",
                                                 "Start Blog",
                                                 "",
                                                 "",
                                                 "Start my own technical blog.",
                                                 "Use Wordpress or DotNetBlogEngine. \n\n Domain: www.awesomeblog.com \n\n Post ideas: Windows 8, Windows Phone 8, Nokia Lumia 920...",
                                                 future));
                this.AllGroups.Add(future);


                var archive = new GtdDataGroup("Archive",
                                               "Archive",
                                               "References",
                                               "Assets/DarkGray.png",
                                               "Things which not require an action. There are stored just for reference.");
                archive.Items.Add(new GtdDataItem("Windows Phone for Absolute beginners",
                                                  "Windows Phone for Absolute beginners",
                                                  "",
                                                  "",
                                                  "Nice tutorial.",
                                                  "Created by Bob Tabor. Can be found on Channel 9.",
                                                  archive));
                this.AllGroups.Add(archive);

                Save();
            }
        }
Example #2
0
 public GtdDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, GtdDataGroup group)
     : base(uniqueId, title, subtitle, imagePath, description)
 {
     this._content = content;
     this._group   = group;
 }