private void AccountDetails_Click(object sender, RoutedEventArgs e) { EditProfile editProfile = new EditProfile(); // Add an event handler to update this form // when the profile form is updated (when ProfileUpdated fires). editProfile.ProfileUpdated += new EditProfile.ProfileUpdateHandler(AccountDetails_ButtonClicked); editProfile.Show(); }
private void GotoEditProfile_Click(object sender, RoutedEventArgs e) { Consoletxtblock.Text += "Go to Edit Profile Click..." + Environment.NewLine; EditProfile editProfile = new EditProfile(); // Add an event handler to update this form // when the profile form is updated (when ProfileUpdated fires). editProfile.ProfileUpdated += new EditProfile.ProfileUpdateHandler(EditProfile_ButtonClicked); editProfile.Show(); }