public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); this.AttachEventHandlers(); this.UpdateLayout(); if (__frontTemplateDialog != null) { __frontTemplateDialog.SelectionChanged -= this.FrontTemplateDialog_SelectionChanged; __frontTemplateDialog = null; } if (__backTemplateDialog != null) { __backTemplateDialog.SelectionChanged -= this.BackTemplateDialog_SelectionChanged; __backTemplateDialog = null; } __presenter.LoadData(); }
private void ChooseTemplate_Click(object sender, EventArgs e) { this.DismissKeyboard(); __frontCard.CommitCardViewData(); __backCard.CommitCardViewData(); if (__selectFront.Selected) { __frontTemplateDialog = new TemplateDialog(this.CurrentFrontTemplate); __frontTemplateDialog.SelectionChanged += this.FrontTemplateDialog_SelectionChanged; this.NavigationController.PushViewController(__frontTemplateDialog, true); } else { __backTemplateDialog = new TemplateDialog(this.CurrentBackTemplate); __backTemplateDialog.SelectionChanged += this.BackTemplateDialog_SelectionChanged; this.NavigationController.PushViewController(__backTemplateDialog, true); } }
private void CardFrontTemplate_TouchDown(object sender, EventArgs e) { __presenter.CommitName(); TemplateDialog templateSelection = new TemplateDialog(this.CardFrontTemplate); templateSelection.SelectionChanged += this.CardFrontTemplateSelectorDialog_SelectionChanged; this.NavigationController.PushViewController(templateSelection, true); }