예제 #1
0
        private void frmPatientDetail_Load(object sender, EventArgs e)
        {
            webcam = new WebCam();
            webcam.ImgControl = imgPatient;

            BindingTitle();

            if (cmdSave.Tag.ToString() == "Add")
                FormClean("Add");

            if (cmdSave.Tag.ToString() == "View")
            {
                cboTitle.SelectedValue = cboTitle.Tag.ToString();

                LoadImage();

                FormClean("View");
            }

            if (cmdSave.Tag.ToString() == "Edit")
            {
                FormClean("Edit");
                cboTitle.SelectedValue = cboTitle.Tag.ToString();

                LoadImage();
            }

            if (cmdSave.Tag.ToString() == "Booked")
            {
                FormClean("Booked");
                txtName.ReadOnly = true;
            }

            DrawBarcode(txtName.Text, dteDOB.Text, txtRegNo.Text, this.imgBarcode);
        }
예제 #2
0
 private void frmMedicineDetail_Load(object sender, EventArgs e)
 {
     webcam = new WebCam();
     webcam.ImgControl = imgImage;
     LoadData();
 }