Beispiel #1
0
        protected void PopulateTable()
        {
            if (!this.IsViewLoaded)
            {
                return;
            }
            if (store.Empty())
            {
                new UIAlertView("Nothing to learn", "Please load from sources", null, "OK", null).Show();

                Update();
                return;
            }

            var tableSource = new TableSource(store.Items);

            table.Source = tableSource;
            table.ReloadData();

            this.NavigationItem.Title = store.GetTableName();

            if (!trainer.IsQuestionsAvalible())
            {
                new UIAlertView("Well Done!", "You are done with all your questions", null, "OK", null).Show();

                btnTrain.Enabled = false;
            }
            else
            {
                btnTrain.Enabled = true;
            }
        }
Beispiel #2
0
 public MenuController(SlideoutNavigationController menu, IDictionaryStorage storage)
     : base(UITableViewStyle.Plain, new RootElement(""))
 {
     this.menu        = menu;
     this.storage     = storage;
     homeControlled   = new HomeScreen(storage);
     updateController = new SourceTypeController(storage);
     menu.TopView     = storage.Empty() ? updateController : homeControlled;
 }
Beispiel #3
0
 public MenuController(SlideoutNavigationController menu,IDictionaryStorage storage)
     : base(UITableViewStyle.Plain,new RootElement(""))
 {
     this.menu = menu;
     this.storage = storage;
     homeControlled = new HomeScreen (storage);
     updateController = new SourceTypeController (storage);
     menu.TopView = storage.Empty () ? updateController : homeControlled;
 }
Beispiel #4
0
        protected void HandleMemoriesClick()
        {
            if (storage.Empty())
            {
                new UIAlertView("Nothing to learn", "Please load from sources", null, "OK", null).Show();

                return;
            }
            NavigationController.PushViewController(homeControlled, true);
        }
Beispiel #5
0
 public bool Empty()
 {
     return(memcacheStorage.Empty());
 }