protected override void OnStop() { LooseMap(); if (UndoBar != null) { UndoBar.Hide(); } base.OnStop(); }
protected void ShowUndoBar (Action undoAction, Action acceptAction = null) { if (UndoBar != null) { UndoBar.Hide (); } UndoBar = new UndoBar (this, Resources.GetString (Resource.String.alarm_deleted), FindViewById (Android.Resource.Id.Content)); UndoBar.Undo += (sender, e) => undoAction (); if (acceptAction != null) { UndoBar.Discard += (sender, e) => acceptAction (); } UndoBar.Show (); }
protected void ShowUndoBar(Action undoAction, Action acceptAction = null) { if (UndoBar != null) { UndoBar.Hide(); } UndoBar = new UndoBar(this, Resources.GetString(Resource.String.alarm_deleted), FindViewById(Android.Resource.Id.Content)); UndoBar.Undo += (sender, e) => undoAction(); if (acceptAction != null) { UndoBar.Discard += (sender, e) => acceptAction(); } UndoBar.Show(); }