private void port_DataChanged(object sender, EventArgs e)
{
try
{
if (AutoCheckBox.IsChecked != null && (bool) AutoCheckBox.IsChecked)
Calculate();
HasError = false;
TopComment.Visibility = Visibility.Hidden;
}
catch (Exception ex)
{
HasError = true;
TopComment.Text = ex.ToString();
TopComment.Visibility = Visibility.Visible;
}
}