public GoogleUpdateController(IDictionaryStorage store)
     : base(UITableViewStyle.Grouped, null,true)
 {
     this.store = store;
     this.supplier = CreateSupplier ();
     Initialize ();
 }
 public GoogleUpdateController(IDictionaryStorage store) :
     base(UITableViewStyle.Grouped, null, true)
 {
     this.store    = store;
     this.supplier = CreateSupplier();
     Initialize();
 }
Esempio n. 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;
 }
Esempio n. 4
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;
 }
 public FileSystemDictionaryStorage()
 {
     this.memcacheStorage = new InMemoryDictionaryStorage();
     if (File.Exists(FilePath))
     {
         var fileContent = File.ReadAllText(FilePath,Encoding.UTF8);
         var table = GetObjectMemoryTable(fileContent);
             memcacheStorage.Store(table);
     }
 }
Esempio n. 6
0
        public HomeScreen(IDictionaryStorage store)
            : base()
        {
            this.store = store;
            this.store.SotrageChanged += (e,s) => {
                this.InvokeOnMainThread (PopulateTable);};
            this.trainer = new SimpleMemoryTrainer(this.store);

            Initialize();
        }
Esempio n. 7
0
 public FileSystemDictionaryStorage()
 {
     this.memcacheStorage = new InMemoryDictionaryStorage();
     if (File.Exists(FilePath))
     {
         var fileContent = File.ReadAllText(FilePath, Encoding.UTF8);
         var table       = GetObjectMemoryTable(fileContent);
         memcacheStorage.Store(table);
     }
 }
Esempio n. 8
0
        public HomeScreen(IDictionaryStorage store)
            : base()
        {
            this.store = store;
            this.store.SotrageChanged += (e, s) => {
                this.InvokeOnMainThread(PopulateTable);
            };
            this.trainer = new SimpleMemoryTrainer(this.store);

            Initialize();
        }
Esempio n. 9
0
        public AnswerController(IDictionaryStorage store) : base()
        {
            this.trainer                = new SimpleMemoryTrainer(store);
            tfAnswer                    = new UITextField();
            tfAnswer.ReturnKeyType      = UIReturnKeyType.Done;
            tfAnswer.BorderStyle        = UITextBorderStyle.RoundedRect;
            tfAnswer.ClearButtonMode    = UITextFieldViewMode.WhileEditing;
            tfAnswer.VerticalAlignment  = UIControlContentVerticalAlignment.Center;
            tfAnswer.AutocorrectionType = UITextAutocorrectionType.No;

            lblQuestion = new UILabel();
            lblQuestion.TextAlignment = UITextAlignment.Center;
            //lblQuestion.Lines = 0;
            lblQuestion.LineBreakMode = UILineBreakMode.WordWrap;
            lblQuestion.Font          = UIFont.BoldSystemFontOfSize(UIFont.LabelFontSize);
        }
Esempio n. 10
0
        public AnswerController(IDictionaryStorage store)
            : base()
        {
            this.trainer = new SimpleMemoryTrainer(store);
            tfAnswer = new UITextField ();
            tfAnswer.ReturnKeyType = UIReturnKeyType.Done;
            tfAnswer.BorderStyle = UITextBorderStyle.RoundedRect;
            tfAnswer.ClearButtonMode = UITextFieldViewMode.WhileEditing;
            tfAnswer.VerticalAlignment = UIControlContentVerticalAlignment.Center;
            tfAnswer.AutocorrectionType = UITextAutocorrectionType.No;

            lblQuestion = new UILabel ();
            lblQuestion.TextAlignment = UITextAlignment.Center;
            //lblQuestion.Lines = 0;
            lblQuestion.LineBreakMode = UILineBreakMode.WordWrap;
            lblQuestion.Font = UIFont.BoldSystemFontOfSize (UIFont.LabelFontSize);
        }
Esempio n. 11
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            storage = new FileSystemDictionaryStorage ();
            /*	Menu = new CustomSlideoutNavigationController ();

            Menu.MenuView = new MenuController(Menu, storage);*/

            var navigation = new UINavigationController ();
            var homeScreen = new HomeScreen (storage);
            navigation.PushViewController (homeScreen, true);
            window.RootViewController = navigation;
            //		window.RootViewController = Menu;
            window.MakeKeyAndVisible ();

            return true;
        }
Esempio n. 12
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            storage = new FileSystemDictionaryStorage();

            /*	Menu = new CustomSlideoutNavigationController ();
            *
            *   Menu.MenuView = new MenuController(Menu, storage);*/

            var navigation = new UINavigationController();
            var homeScreen = new HomeScreen(storage);

            navigation.PushViewController(homeScreen, true);
            window.RootViewController = navigation;
            //		window.RootViewController = Menu;
            window.MakeKeyAndVisible();

            return(true);
        }
Esempio n. 13
0
 public SimpleMemoryTrainer(IDictionaryStorage storage)
 {
     this.storage = storage;
     this.randomizer = new SimpleRandomizer (this.storage);
 }
Esempio n. 14
0
 public PublicUpdateController(IDictionaryStorage store) : base(store)
 {
 }
Esempio n. 15
0
 public PublicUpdateController(IDictionaryStorage store)
     : base(store)
 {
 }
 public SimpleMemoryTrainer(IDictionaryStorage storage)
 {
     this.storage    = storage;
     this.randomizer = new SimpleRandomizer(this.storage);
 }
Esempio n. 17
0
 public SourceTypeController(IDictionaryStorage store)
     : base(UITableViewStyle.Grouped, null,true)
 {
     privateController = new PrivateGoogleUpdateController (store);
     publicController = new PublicUpdateController (store);
 }
Esempio n. 18
0
 public SimpleRandomizer(IDictionaryStorage store)
 {
     this.random = new Random();
     this.store  = store;
 }
 public SourceTypeController(IDictionaryStorage store) : base(UITableViewStyle.Grouped, null, true)
 {
     privateController = new PrivateGoogleUpdateController(store);
     publicController  = new PublicUpdateController(store);
 }
 public PrivateGoogleUpdateController(IDictionaryStorage store)
     : base(store)
 {
 }
Esempio n. 21
0
 public SimpleRandomizer(IDictionaryStorage store)
 {
     this.random=new Random();
     this.store = store;
 }
 public SimpleMemoryTrainer(IDictionaryStorage storage, IRandomizer randomizer)
 {
     this.storage    = storage;
     this.randomizer = randomizer;
 }
Esempio n. 23
0
 public SimpleMemoryTrainer(IDictionaryStorage storage, IRandomizer randomizer)
 {
     this.storage = storage;
     this.randomizer = randomizer;
 }
Esempio n. 24
0
 public PrivateGoogleUpdateController(IDictionaryStorage store) : base(store)
 {
 }