bool View.IOnTouchListener.OnTouch(View v, MotionEvent e) { bool returnValue = false; switch (e.Action) { case MotionEventActions.Down: returnValue = !(v == ContinueImageButton); break; case MotionEventActions.Up: if (v == ContinueImageButton) { owner.OnContinueTimeEntry(this); returnValue = false; } if (v == UndoButton) { owner.SetItemsToNormalPosition(); returnValue = true; } break; } return(returnValue); }
void OnContinueButtonClicked(object sender, EventArgs e) { if (Model == null) { return; } adapter.OnContinueTimeEntry(Model); }
public bool OnTouch(View v, MotionEvent e) { switch (e.Action) { case MotionEventActions.Up: owner.OnContinueTimeEntry(this); return(false); } return(false); }
private void OnContinueButtonClicked(object sender, EventArgs e) { if (DataSource == null) { return; } if (DataSource.State == TimeEntryState.Running) { adapter.OnStopTimeEntry(DataSource); return; } adapter.OnContinueTimeEntry(DataSource); }