PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/CmsCheckin/Picture.cs

https://bitbucket.org/mahalowe/bvcms
C# | 49 lines | 43 code | 6 blank | 0 comment | 0 complexity | 4dc701ebfc016f58d61fec25a93e315e MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel;
 4using System.Data;
 5using System.Drawing;
 6using System.Linq;
 7using System.Text;
 8using System.Windows.Forms;
 9using System.Net;
10using System.Xml.Linq;
11using System.Xml.Serialization;
12using System.IO;
13using System.Drawing.Imaging;
14
15namespace CmsCheckin
16{
17    public partial class Picture : Form
18    {
19        public Picture()
20        {
21            InitializeComponent();
22
23        }
24
25        private void pictureBox1_Click(object sender, EventArgs e)
26        {
27            var f = new TakePicture();
28            f.ShowDialog();
29            this.Close();
30        }
31
32        private void TakePic_Click(object sender, EventArgs e)
33        {
34            var f = new TakePicture();
35            f.ShowDialog();
36            this.Close();
37        }
38
39        private void Return_Click(object sender, EventArgs e)
40        {
41            this.Close();
42        }
43
44        private void Picture_Load(object sender, EventArgs e)
45        {
46			pictureBox1.Image = Util.GetImage(Program.PeopleId);
47        }
48    }
49}