コード例 #1
0
        ///
        ///
        ///     Handles a click event on one of our kanbanmodels inside our Sfkanban
        ///
        ///
        private void KanbanModelClicked(object sender, KanbanTappedEventArgs e)
        {
            KanbanModel currentClickedKanbanModel = (KanbanModel)e.Data;

            // If the current click is the first click on the item:
            if (clickIdentifier)
            {
                clickIdentifier    = false;
                clickedKanbanModel = currentClickedKanbanModel;
                thisDoubleClickGestureListener.timer.Start();
            }
            // If the current click is the second click on the item:
            else if (!clickIdentifier && clickedKanbanModel.Equals(currentClickedKanbanModel))
            {
                thisDoubleClickGestureListener.timer.Stop();
                clickIdentifier = true;
                // Now we need to make the current card as finished
                MarkCardAsFinished(e.Column, (long)((KanbanModel)e.Data).ID);
                //Toast.MakeText(this, "Fire Double Click Event", ToastLength.Short).Show();
            }
            // A new kanbanModel was clicked therefore we are starting a new DoubleClickGesture for that object
            else if (!clickIdentifier && !currentClickedKanbanModel.Equals(clickedKanbanModel))
            {
                // First we stop the timer
                thisDoubleClickGestureListener.timer.Stop();
                // Secondly we sent the click identifier to true
                clickIdentifier = true;
                // Thirdly we assign the currently clicked kanbanmodel as the last
                clickedKanbanModel = currentClickedKanbanModel;
                // Then we start an intent on the currently click
                //Intent showDetailsActivity = new Intent(this, typeof(DetailsCardActivity));
                //showDetailsActivity.PutExtra("kanbanModelId", (long)clickedKanbanModel.ID);
                //StartActivityForResult(showDetailsActivity, DETAILS_ACTIVITY_CODE);
            }
        }
コード例 #2
0
        private void Kanban_CardTapped(object sender, KanbanTappedEventArgs e)
        {
            SQLiteConnection Connection = new SQLiteConnection("Data Source=" + Environment.CurrentDirectory + Properties.Settings.Default.DBPath);

            Connection.Open();
            DataContext db = new DataContext(Connection);

            // Get a typed table to run queries.
            Table <SprintTask> SprintTsks = db.GetTable <SprintTask>();
            Table <ScrumTask>  ScrumTsks  = db.GetTable <ScrumTask>();

            int SprintTaskID;

            Int32.TryParse((e.SelectedCard.Content as KanbanModel).ID, out SprintTaskID);

            ScrumTask tsk = (from sp in SprintTsks
                             join sc in ScrumTsks on sp.ScrumTaskID equals sc.ID
                             where sp.ID == SprintTaskID
                             select sc).SingleOrDefault();

            TaskExternalID.Text          = tsk.ExternalID.ToString();
            TaskExternalID.Tag           = e.SelectedCard;
            TaskTitle.Text               = tsk.Title;
            TaskDescription.Text         = tsk.Description;
            TaskTeamMember.SelectedIndex = -1;
            // e.SelectedCard.;
        }
コード例 #3
0
        private void SfKanban_OnCardTapped(object sender, KanbanTappedEventArgs e)
        {
            //click ot card
            var viewModel = (BoardViewModel)DataContext;

            viewModel.SelectedTask  = (TaskViewModel)e.SelectedCard.Content;
            viewModel.TaskViewWidth = 350;
        }
コード例 #4
0
        private void SfKanban_OnCardTapped(object sender, KanbanTappedEventArgs e)
        {
            var viewModel = (BoardViewModel)DataContext;

            viewModel.SelectedTask  = (Task)e.SelectedCard.Content;
            viewModel.TaskViewWidth = 250;
            ClearTaskTagEntry();
            ClearSubTaskEntry();
        }
        private void OnKanbantemTapped(object sender, KanbanTappedEventArgs e)
        {
            if (Command == null)
            {
                return;
            }

            object parameter = e.Data;

            if (Command.CanExecute(parameter))
            {
                Command.Execute(parameter);
            }
        }
        private void Kanban_ItemTapped(object sender, KanbanTappedEventArgs e)
        {
            var data = viewModel;

            ShowPopup((data as CustomViewModel), (e.Data as CustomModel));
        }