コード例 #1
0
        public ListItem Add(ICompletionData CompletionData, AutoListIcons ImageIndex)
        {
            ListItem li = new ListItem(CompletionData, (int)ImageIndex);

            this.LB.Items.Add(li);

            //this.LB.Sorted =true;
            return(li);
        }
コード例 #2
0
 public CodeCompletionData(string s, string desc, AutoListIcons imageIndex)
 {
     ambience        = Parser.ProjectParser.CurrentAmbience;
     description     = desc;
     documentation   = string.Empty;
     text            = s;
     this.imageIndex = imageIndex;
     GetPriority(s);
 }
コード例 #3
0
        public ListItem Add(string Text, string InsertText, string ToolTip, AutoListIcons ImageIndex)
        {
            ListItem li = new ListItem(Text, (int)ImageIndex, "", InsertText);

            this.LB.Items.Add(li);
            li.ToolTip = ToolTip;

            //this.LB.Sorted =true;
            return(li);
        }
コード例 #4
0
 public CodeCompletionData(IEvent e)
 {
     member   = e;
     ambience = Parser.ProjectParser.CurrentAmbience;
     ambience.ConversionFlags = ConversionFlags.ShowReturnType | ConversionFlags.ShowParameterNames | ConversionFlags.ShowModifiers;
     imageIndex    = ScriptControl.GetIcon(e);
     text          = e.Name;
     description   = ambience.Convert(e);
     documentation = e.Documentation;
     GetPriority(e.DotNetName);
 }
コード例 #5
0
ファイル: CodeCompletionData.cs プロジェクト: VE-2016/VE-2016
 public CodeCompletionData(IProperty property)
 {
     _member   = property;
     _ambience = Parser.ProjectParser.CurrentAmbience;
     _ambience.ConversionFlags = ConversionFlags.ShowReturnType | ConversionFlags.ShowParameterNames | ConversionFlags.ShowModifiers;
     _imageIndex    = ScriptControl.GetIcon(property);
     _text          = property.Name;
     _description   = _ambience.Convert(property);
     _documentation = property.Documentation;
     GetPriority(property.DotNetName);
 }
コード例 #6
0
 public CodeCompletionData(IClass c)
 {
     ambience = Parser.ProjectParser.CurrentAmbience;
     // save class (for the delegate description shortcut)
     this.c     = c;
     imageIndex = ScriptControl.GetIcon(c);
     ambience.ConversionFlags = ConversionFlags.None;
     text = ambience.Convert(c);
     ambience.ConversionFlags = ConversionFlags.UseFullyQualifiedNames | ConversionFlags.ShowReturnType | ConversionFlags.ShowModifiers;
     description   = ambience.Convert(c);
     documentation = c.Documentation;
     GetPriority(c.DotNetName);
 }
コード例 #7
0
        public static AutoListIcons GetIcon(IClass c)
        {
            AutoListIcons imageIndex = AutoListIcons.iClass;

            switch (c.ClassType)
            {
            case ClassType.Delegate:
                imageIndex = AutoListIcons.iDelegate;
                break;

            case ClassType.Enum:
                imageIndex = AutoListIcons.iEnum;
                break;

            case ClassType.Struct:
                imageIndex = AutoListIcons.iStructure;
                break;

            case ClassType.Interface:
                imageIndex = AutoListIcons.iInterface;
                break;
            }
            return((AutoListIcons)(int)imageIndex + GetModifierOffset(c.Modifiers));
        }
コード例 #8
0
 /// <summary>
 /// Adds a new ListItem to the AutoListForm.
 /// </summary>
 /// <param name="Text">Text of the new ListItem</param>
 /// <param name="ImageIndex">Image index that should be assigned to the new ListItem</param>
 /// <returns></returns>
 public ListItem Add(string Text, AutoListIcons ImageIndex)
 {
     return(this.Add(Text, Text, ImageIndex));
 }
コード例 #9
0
ファイル: AutoListForm.cs プロジェクト: bartKam/hardek
        public ListItem Add(string Text, string InsertText, string ToolTip, AutoListIcons ImageIndex)
		{
            ListItem li = new ListItem(Text, (int)ImageIndex, "", InsertText);
			this.LB.Items.Add(li);
			li.ToolTip = ToolTip;
            
			//this.LB.Sorted =true;
			return li;
		}
コード例 #10
0
ファイル: AutoListForm.cs プロジェクト: bartKam/hardek
 public ListItem Add(ICompletionData CompletionData, AutoListIcons ImageIndex)
 {
     ListItem li = new ListItem(CompletionData, (int)ImageIndex);
     this.LB.Items.Add(li);
     
     //this.LB.Sorted =true;
     return li;
 }
コード例 #11
0
ファイル: AutoListForm.cs プロジェクト: bartKam/hardek
		/// <summary>
		/// Adds a new ListItem to the AutoListForm.
		/// </summary>
		/// <param name="Text">Text of the new ListItem</param>
		/// <param name="ImageIndex">Image index that should be assigned to the new ListItem</param>
		/// <returns></returns>
        public ListItem Add(string Text, AutoListIcons ImageIndex)
		{
            return this.Add(Text, Text, ImageIndex);
		}
コード例 #12
0
 public DefaultCompletionData(string text, string description, AutoListIcons imageIndex)
 {
     this.text        = text;
     this.description = description;
     this.imageIndex  = imageIndex;
 }
コード例 #13
0
ファイル: ICompletionData.cs プロジェクト: bartKam/hardek
        public DefaultCompletionData(string text, string description, AutoListIcons imageIndex)
		{
			this.text        = text;
			this.description = description;
			this.imageIndex  = imageIndex;
		}
コード例 #14
0
 /// <summary>
 /// Adds an item to the autolist control.
 /// </summary>
 /// <param name="Text">The text to display in the autolist</param>
 /// <param name="InsertText">The text to insert in the code</param>
 /// <param name="ToolTip">
 /// <param name="ExtendedData">
 /// </param>
 /// <param name="ImageIndex">The image index in the AutoListIcons</param>
 public void AutoListAdd(string Text, string InsertText, string ToolTip,string ExtendedData, AutoListIcons ImageIndex)
 {
     this._ActiveView.AutoList.Add(Text, InsertText, ToolTip,ExtendedData, ImageIndex);
 }
コード例 #15
0
		/// <summary>
		/// Adds an item to the autolist control.
		/// </summary>
		/// <param name="Text">The text to display in the autolist</param>
		/// <param name="InsertText">The text to insert in the code</param>
		/// <param name="ImageIndex">The image index in the AutoListIcons</param>
        public void AutoListAdd(string Text, string InsertText, AutoListIcons ImageIndex)
		{
			this._ActiveView.AutoList.Add(Text, InsertText, ImageIndex);
		}