Ejemplo n.º 1
0
 private void iniciarHilo()
 {
     faceBot = new FaceBot();
     if (faceBot.ShowDialog() == DialogResult.OK)
     {
         label1.Text = faceBot.UserName;
         faceBot     = null;
         return;
     }
 }
Ejemplo n.º 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.");
     }
 }