예제 #1
0
파일: GUI.cs 프로젝트: xiangyuan/Unreal4
        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;
        }
예제 #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);
        }
예제 #3
0
 public void SetMainParam(Param param)
 {
     mainParam = param;
 }
예제 #4
0
 public ParsingErrorException(Param sender, string message)
     : base(message)
 {
     Sender = sender;
 }
예제 #5
0
파일: GUI.cs 프로젝트: xiangyuan/Unreal4
        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;
 }