protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e) { ExtensionMethods.BindFocusedTextBox(); base.OnNavigatedFrom(e); this.State["SelectedItemId"] = CommentableObject.InstanceId; this.State["CommentText"] = CommentableObject.Comment; }
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); }
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); }
private void btnSend_Click(object sender, EventArgs e) { progressBar.ShowProgress(true, ApplicationStrings.SendMessagePage_ProgressSending); ExtensionMethods.BindFocusedTextBox(); viewModel.Send(); }