Esempio n. 1
0
        private void StopStream_Button_Click(object sender, EventArgs e)
        {
            try
            {
                streamManager.StopStream();
                this.VideoStatus.Text = "No Stream";
                Recording             = false;
                if (Saving)
                {
                    this.StopSave_Button_Click(sender, e);
                }
            }
            catch (Exception ex)
            {
                OutputResult.Text = ex.Message;
                while (ex.InnerException != null)
                {
                    ex = ex.InnerException;
                    OutputResult.Text += "\n" + ex.Message;
                }
                Recording = false;
                if (Saving)
                {
                    this.StopSave_Button_Click(sender, e);
                }
            }
            this.ShowBox.Image    = waitingBitmap;
            this.VideoStatus.Text = "No Stream";

            StreamConnection_Box.Enabled          = true;
            User_TextBox.Enabled                  = true;
            Password_TextBox.Enabled              = true;
            DatabaseConnection_Box.Enabled        = true;
            FaceApiKey_Box.Enabled                = true;
            FaceApiUri_Box.Enabled                = true;
            selectCameraToolStripMenuItem.Enabled = true;
        }