Exemple #1
0
 public LittleUser(Client client, bool showAll = true)
 {
     InitializeComponent();
     name.Text     = client.name;
     cnp.Text      = client.cnp;
     picture.Image = PictureManipulation.ResizeImage(PictureManipulation.ByteToImage(client.image), 200, 150);
     this.client   = client;
     if (!showAll)
     {
         editButton.Hide();
         ticketButton.Hide();
     }
 }
Exemple #2
0
 public NewClient(Client client)
 {
     InitializeComponent();
     errors.Text         = "";
     pic                 = PictureManipulation.ResizeImage(PictureManipulation.ByteToImage(client.image), 400, 300);
     clientPicture.Image = pic;
     takePic.Hide();
     retakePic.Show();
     filterInfoCollection = new FilterInfoCollection(FilterCategory.VideoInputDevice);
     if (filterInfoCollection.Count > 0)
     {
         videoCaptureDevice           = new VideoCaptureDevice(filterInfoCollection[0].MonikerString);
         videoCaptureDevice.NewFrame += VideoCaptureDevice_NewFrame;
     }
     clientName.Text    = client.name;
     clientPhone.Text   = client.phone;
     clientEmail.Text   = client.email;
     clientCnp.Text     = client.cnp;
     clientAddress.Text = client.address;
     clientNotes.Text   = client.notes;
     update             = true;
     upClient           = client;
     InitCustomFont(client.barcode.ToString());
 }