Exemplo n.º 1
0
        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 ();
		}
Exemplo n.º 3
0
        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();
        }