示例#1
0
        private void iniciarHilo()
        {
            FaceBot faceBot = new FaceBot(this.PathVideo);

            if (faceBot.ShowDialog() == DialogResult.OK)
            {
                label1.Text = faceBot.UserName;
                //faceBot = null;
                return;
            }
        }
示例#2
0
 // Save the User Info with the frame to the database.
 private void SaveButton_Click(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(UserNameTextBox.Text) && !String.IsNullOrEmpty(URLTextBox.Text))
     {
         FaceBot.SaveFaceWithUserInfo(UserNameTextBox.Text, URLTextBox.Text, FaceBot.File);
         Close();
     }
     else
     {
         MessageBox.Show("Invalid or Empty input, please try again.");
     }
 }