예제 #1
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            ExtensionMethods.BindFocusedTextBox();
            base.OnNavigatedFrom(e);

            this.State["SelectedItemId"] = CommentableObject.InstanceId;
            this.State["CommentText"]    = CommentableObject.Comment;
        }
예제 #2
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            if (e.Content is ExerciseViewPage && saved)
            {
                (e.Content as ExerciseViewPage).votesControl.UpdateMyComment();
            }

            if (e.Content is WorkoutPlanViewPage && saved)
            {
                (e.Content as WorkoutPlanViewPage).votesControl.UpdateMyComment();
            }
            //this.SaveState();
            ExtensionMethods.BindFocusedTextBox();
            State["Exercise"] = Item;
            base.OnNavigatedFrom(e);
        }
예제 #3
0
        private void btnVote_Click(object sender, EventArgs e)
        {
            progressBar.ShowProgress(true, ApplicationStrings.VotingPage_ProgressSending);
            ExtensionMethods.BindFocusedTextBox();

            VoteObject objType = VoteObject.WorkoutPlan;

            if (Item is ExerciseLightDTO)
            {
                objType = VoteObject.Exercise;
            }
            else if (Item is SuplementDTO)
            {
                objType = VoteObject.Supplement;
            }
            else if (Item is SupplementCycleDefinitionDTO)
            {
                objType = VoteObject.SupplementCycleDefinition;
            }

            voteOnWorkoutPlan(objType);
        }
예제 #4
0
 private void btnSend_Click(object sender, EventArgs e)
 {
     progressBar.ShowProgress(true, ApplicationStrings.SendMessagePage_ProgressSending);
     ExtensionMethods.BindFocusedTextBox();
     viewModel.Send();
 }