/// <summary> /// Актуализировать параметры цифровой панели /// </summary> public override void Actualize() { try { GPanel_1.Actualize(_app); GPanel_2.Actualize(_app); GPanel_3.Actualize(_app); if (items != null) { foreach (VPanelParameter item in items) { if (item != null) { Parameter p_item = _app.GetParameter(item.Identifier); if (p_item != null) { PanelItem panel_item = item.Tag as PanelItem; if (panel_item != null) { string total = Regex.Replace(p_item.Name, @"(?<=\[).+(?=\])", string.Empty); panel_item.Description = total.Replace("[]", String.Empty); if (p_item.Units != string.Empty) { panel_item.Description += "(" + p_item.Units + ")"; } } } } } } } catch { } }
/// <summary> /// Обновить панель /// </summary> public override void Update() { try { base.Update(); n_panel.ClearItems(); GPanel_1.UpdatePanel(); GPanel_2.UpdatePanel(); GPanel_3.UpdatePanel(); InitializeNumericPanelItems(); } catch (Exception ex) { ErrorHandler.WriteToLog(this, new ErrorArgs(string.Format("message: {0} stack: {1}", ex.Message, ex.StackTrace))); } }