Exemple #1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            EnsureBindingIsApplied();

            if (!ValidateTask())
            {
                return;
            }

            DummyProjectViewModel selectedProject = ProjectPicker.SelectedItem as DummyProjectViewModel;

            if (selectedProject.Id > -1)
            {
                task.ProjectId = selectedProject.Id;
            }

            if (deletePhotoOnSave)
            {
                task.DeletePhoto();
            }
            else if (photoData != null)
            {
                task.AssignPhoto(photoData);
            }

            if (deleteVoiceMemoOnSave)
            {
                task.DeleteVoiceMemo();
            }
            else if (voiceData != null)
            {
                task.AssignVoiceMemo(voiceData);
            }

            task.Save();

            this.NavigateToNextPage();
        }
Exemple #2
0
 private void CompleteButton_Click(object sender, EventArgs e)
 {
     task.IsCompleted = true;
     task.Save();
     NavigateToNextPage();
 }