Добавлена проверка

This commit is contained in:
kotcheshir73 2021-04-03 10:50:51 +04:00
parent 4bb7f3c12c
commit 6992a7df68

View File

@ -84,6 +84,8 @@ namespace DesktopTools.Controls
try try
{ {
_element = value; _element = value;
if (_element != null)
{
SetValues?.Invoke(_element); SetValues?.Invoke(_element);
if (tabControl.Visible) if (tabControl.Visible)
{ {
@ -100,6 +102,7 @@ namespace DesktopTools.Controls
} }
} }
} }
}
_haveChages = false; _haveChages = false;
} }
catch (Exception ex) catch (Exception ex)