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); }