|
@@ -158,8 +158,6 @@ namespace ImpulseVision
|
|
|
/// </summary>
|
|
|
private void ProcessFrame()
|
|
|
{
|
|
|
- if (BgrFrame == null)
|
|
|
- return;
|
|
|
BgrFrame = Capture.QueryFrame().ToImage<Bgr, Byte>().Flip(FlipType.Horizontal);
|
|
|
|
|
|
if (BgrFrame != null)
|
|
@@ -430,6 +428,9 @@ where ID = '{IdUser}'";
|
|
|
/// </summary>
|
|
|
private void BtnAddUser_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
+ if (IsWorking)
|
|
|
+ return;
|
|
|
+
|
|
|
if (ViewUserByType == 0)
|
|
|
{
|
|
|
FormEditingGuard Fg = new FormEditingGuard(true, CurrentUser.UserID.ToString()); ;
|
|
@@ -488,9 +489,10 @@ where ID = '{IdUser}'";
|
|
|
|
|
|
if (BgrFrame != null)
|
|
|
{
|
|
|
- BgrFrame = null;
|
|
|
Capture.Dispose();
|
|
|
CaptureTimer.Tick -= CaptureTimer_Tick;
|
|
|
+
|
|
|
+ BgrFrame = null;
|
|
|
}
|
|
|
|
|
|
PbxEther.Image = Properties.Resources._9110852_video_no_icon;
|