private void JobHunterNext_Click(object sender, RoutedEventArgs e) { currentUser.UserType = 0; JobSeekerRegistration jr = new JobSeekerRegistration(this); jr.Show(); this.Hide(); }
//private void setpic() //{ // System.Drawing.Image defaultPhoto; // BitmapImage photo = new BitmapImage(); // try // { // Uri uri = new Uri("pack://application:,,,/JobBoard.WpfApplication;Component/Resources/profileimage.png", UriKind.Absolute); // StreamResourceInfo sri = Application.GetResourceStream(uri); // defaultPhoto = System.Drawing.Image.FromStream(sri.Stream); // using (Bitmap bmp = new Bitmap(defaultPhoto)) // { // MemoryStream ms = new MemoryStream(); // bmp.Save(ms, ImageFormat.Png); // ms.Position = 0; // BitmapImage bi = new BitmapImage(); // bi.BeginInit(); // bi.StreamSource = ms; // bi.EndInit(); // photo = bi; // profileImage.Source = bi; // } // } // catch (Exception ex) { MessageBox.Show("Default profile Image not in resources folder." + ex.ToString()); } //} private void ProfileInfoEdit_Click(object sender, RoutedEventArgs e) { JobSeekerRegistration jsr = new JobSeekerRegistration(profile); }