|
@@ -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>
|
|
|
/// изменение пароля
|