/CmsCheckin/Picture.cs

https://bitbucket.org/mahalowe/bvcms · C# · 49 lines · 43 code · 6 blank · 0 comment · 0 complexity · 4dc701ebfc016f58d61fec25a93e315e MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Net;
  10. using System.Xml.Linq;
  11. using System.Xml.Serialization;
  12. using System.IO;
  13. using System.Drawing.Imaging;
  14. namespace CmsCheckin
  15. {
  16. public partial class Picture : Form
  17. {
  18. public Picture()
  19. {
  20. InitializeComponent();
  21. }
  22. private void pictureBox1_Click(object sender, EventArgs e)
  23. {
  24. var f = new TakePicture();
  25. f.ShowDialog();
  26. this.Close();
  27. }
  28. private void TakePic_Click(object sender, EventArgs e)
  29. {
  30. var f = new TakePicture();
  31. f.ShowDialog();
  32. this.Close();
  33. }
  34. private void Return_Click(object sender, EventArgs e)
  35. {
  36. this.Close();
  37. }
  38. private void Picture_Load(object sender, EventArgs e)
  39. {
  40. pictureBox1.Image = Util.GetImage(Program.PeopleId);
  41. }
  42. }
  43. }