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(); }
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 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); } }
public HomeScreen(IDictionaryStorage store) : base() { this.store = store; this.store.SotrageChanged += (e,s) => { this.InvokeOnMainThread (PopulateTable);}; this.trainer = new SimpleMemoryTrainer(this.store); Initialize(); }
public FileSystemDictionaryStorage() { this.memcacheStorage = new InMemoryDictionaryStorage(); if (File.Exists(FilePath)) { var fileContent = File.ReadAllText(FilePath, Encoding.UTF8); var table = GetObjectMemoryTable(fileContent); memcacheStorage.Store(table); } }
public HomeScreen(IDictionaryStorage store) : base() { this.store = store; this.store.SotrageChanged += (e, s) => { this.InvokeOnMainThread(PopulateTable); }; this.trainer = new SimpleMemoryTrainer(this.store); Initialize(); }
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); }
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); }
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; }
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); }
public SimpleMemoryTrainer(IDictionaryStorage storage) { this.storage = storage; this.randomizer = new SimpleRandomizer (this.storage); }
public PublicUpdateController(IDictionaryStorage store) : base(store) { }
public SimpleMemoryTrainer(IDictionaryStorage storage) { this.storage = storage; this.randomizer = new SimpleRandomizer(this.storage); }
public SourceTypeController(IDictionaryStorage store) : base(UITableViewStyle.Grouped, null,true) { privateController = new PrivateGoogleUpdateController (store); publicController = new PublicUpdateController (store); }
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) { }
public SimpleRandomizer(IDictionaryStorage store) { this.random=new Random(); this.store = store; }
public SimpleMemoryTrainer(IDictionaryStorage storage, IRandomizer randomizer) { this.storage = storage; this.randomizer = randomizer; }