Browse Source

Исправление недочётов

phoenix.XLIX 1 year ago
parent
commit
1607dade2f

+ 1 - 0
ImpulseVision/FormEditingGuard.cs

@@ -36,6 +36,7 @@ namespace ImpulseVision
             }
             else
             {
+                TbxLogin.Enabled = false;
                 BsGuard.Filter = $@"ID = '{UserID}'";
             }
             LblUserType.Hide();

File diff suppressed because it is too large
+ 411 - 550
ImpulseVision/FormMain.Designer.cs


+ 15 - 2
ImpulseVision/FormMain.cs

@@ -254,7 +254,8 @@ namespace ImpulseVision
 
             CmbCams.Visible = false;
             TslSelCamText.Visible = false;
-            LblAdminID.Hide();
+
+            LblAdminID.ForeColor = this.BackColor;
 
             CmbSortDate.SelectedIndex = 0;
             DtpFiniteDate.Value = DateTime.Now.Date;
@@ -323,6 +324,12 @@ namespace ImpulseVision
         /// </summary>
         private void BtnDelUser_Click(object sender, EventArgs e)
         {
+            if (TableUsers.Controls.Count == 0)
+            {
+                MessageBox.Show("Объекты для удаления отсутствуют!", "ImpulseVision", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
+
             string NameUserType = "Users";
             if (ViewUserByType == 0)
             {
@@ -809,6 +816,12 @@ values ({AddingUserID},'{PhotoPath}')";
 
         private void BtnEditUser_Click(object sender, EventArgs e)
         {
+            if (TableUsers.Controls.Count == 0)
+            {
+                MessageBox.Show("Объекты для редактирования отсутствуют!", "ImpulseVision", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
+
             if (ViewUserByType == 0)
             {
                 FormEditingGuard Fg = new FormEditingGuard(false, CurrentUser.UserID.ToString());
@@ -1230,7 +1243,7 @@ from UserTraffic ut join Users on ut.UserID = Users.ID
             ChangePassword(TbxNewPass.Text.Trim());
             MessageBox.Show("Ваш пароль успешно изменён. Для продолжения работы с приложением необходима повторная авторизация.", "ImpulseVision", MessageBoxButtons.OK, MessageBoxIcon.Information);
 
-            Application.Restart();
+            this.Close();
         }
         /// <summary>
         /// изменение пароля

+ 2 - 2
ImpulseVision/FormMain.resx

@@ -124,7 +124,7 @@
     <value>132, 17</value>
   </metadata>
   <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>237, 17</value>
+    <value>406, 44</value>
   </metadata>
   <metadata name="TimerNewCam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>353, 17</value>
@@ -151,7 +151,7 @@
     <value>221, 56</value>
   </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>64</value>
+    <value>99</value>
   </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

BIN
ImpulseVision/bin/Debug/ImpulseVision.exe


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Алекс9088782819.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Вячеслав7341564790.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Вячеслав8596459879.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Игорь8811809812.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Ирина7610671011.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Надежда9077670955.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Наталья1517875038.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Наталья9055907462.bmp


BIN
ImpulseVision/bin/Debug/Source/TrainedImages/Петр0098673891.bmp


Some files were not shown because too many files changed in this diff