Exemple #1
0
        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;
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void SetMainParam(Param param)
 {
     mainParam = param;
 }
Exemple #4
0
 public ParsingErrorException(Param sender, string message)
     : base(message)
 {
     Sender = sender;
 }
Exemple #5
0
        private static void AddParamToPanel(Param param, Panel panel)
        {
            var element = AddToolTipToParam(param);

            panel.Children.Add(element);
        }
 public void SetMainParam(Param param)
 {
     mainParam = param;
 }
 public ParsingErrorException(Param sender, string message)
     : base(message)
 {
     Sender = sender;
 }