private static FrameworkElement AddToolTipToParam(Param param) { var element = param.GetGUIElement(); element.ToolTip = "toolTip"; element.DataContext = param; element.ToolTipOpening += (sender, args) => { element.ToolTip = ((sender as FrameworkElement).DataContext as Param).Description; }; return element; }
public void Add(Param param) { parameters.Add(param); var groupHash = (param.DescriptionGroup != null) ? param.DescriptionGroup.GetHashCode() : 0; if (!groupParamsMap.ContainsKey(groupHash)) { if (groupHash != 0) { groups.Add(param.DescriptionGroup); } groupParamsMap[groupHash] = new List<Param>(); } groupParamsMap[groupHash].Add(param); }
public void SetMainParam(Param param) { mainParam = param; }
public ParsingErrorException(Param sender, string message) : base(message) { Sender = sender; }
private static void AddParamToPanel(Param param, Panel panel) { var element = AddToolTipToParam(param); panel.Children.Add(element); }