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);
            }
Beispiel #2
0
 void OnContinueButtonClicked(object sender, EventArgs e)
 {
     if (Model == null)
     {
         return;
     }
     adapter.OnContinueTimeEntry(Model);
 }
Beispiel #3
0
            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);
            }