Exemple #1
0
 public EmployeeRegistrationView(UserModel currentUser, Form prevForm)
 {
     InitializeComponent();
     _currentUser  = currentUser;
     _previousForm = prevForm;
     loadAllCombo(rankCombo, typeof(RanksEnum));
     loadAllCombo(bloodGrpCombo, typeof(BloodGroupEnum));
     loadAllCombo(maritalStatus_combo, typeof(MarriedEnum));
     _signature = new signaturePadView();
     //_bmp = new Bitmap(signature_pictureBox.Image);
 }
Exemple #2
0
 private void signature_btn_Click(object sender, EventArgs e)
 {
     _signature = new signaturePadView();
     _signature.Show();
     _signature.FormClosed += getImageToPictureBox;
     // signature_pictureBox.Image = _bmp;
     //signature_pictureBox.Load("asdf.bmp");
     //OpenFileDialog pic = new OpenFileDialog();
     // if (pic.ShowDialog() == DialogResult.OK)
     // {
     // pictureBox1.Image = Image.FromFile(pic.FileName);
     //  signature_pictureBox.Load(pic.FileName);
     //  signature_pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
     //textBox1.Text = pic.FileName;
     //signature_box.Text =picture_box
     //_bmp.Save("img" );
     // _signaturePath = signature_pictureBox.ImageLocation;
     //  }
 }