Exemplo n.º 1
0
        public static void LoadMockData(this INoteEntryStore store)
        {
            NoteEntry a = new NoteEntry
            {
                Title = "Sprint Planning Meeting",
                Text  = "1. Scope 2. Backlog 3. Duration"
            };

            NoteEntry b = new NoteEntry
            {
                Title = "Daily Scrum Stand-up",
                Text  = "1. Yesterday 2. Today 3. Impediments"
            };

            NoteEntry c = new NoteEntry
            {
                Title = "Sprint Retrospective",
                Text  = "1. Reflection 2. Actions"
            };

            Task.WhenAll(
                store.AddAsync(a),
                store.AddAsync(b),
                store.AddAsync(c))
            .ConfigureAwait(false);
        }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            Entries = new MemoryEntryStore();
            Entries.LoadMockData();


            MainPage = new XamarinAssignment01.MainPage();
        }
Exemplo n.º 3
0
 public App()
 {
     InitializeComponent();
     Entries = new MemoryEntryStore();
     Entries.LoadMockData();
     MainPage = new NavigationPage(new Minutes.MainPage())
     {
         BarBackgroundColor = Color.FromHex("#3498db"),
         BarTextColor       = Color.White
     };
 }