private async void Save_Click(object sender, RoutedEventArgs e) { if (myPassward.Password != App.thisuser.Password && myPassword2.Password == myPassward.Password) { var Announcement = await Database.Context.Users.SingleOrDefaultAsync(m => m.Id == App.thisuser.Id); if (Announcement != null) { Announcement.Password = myPassword2.Password; await Database.Context.SaveChangesAsync(); } PhotoFrame.Navigate(typeof(Photo)); } }
private void Exit_Click(object sender, RoutedEventArgs e) { PhotoFrame.Navigate(typeof(MainPage)); }