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); }
public CodeCompletionData(string s, string desc, AutoListIcons imageIndex) { ambience = Parser.ProjectParser.CurrentAmbience; description = desc; documentation = string.Empty; text = s; this.imageIndex = imageIndex; GetPriority(s); }
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); }
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); }
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); }
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); }
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)); }
/// <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)); }
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; }
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; }
/// <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); }
public DefaultCompletionData(string text, string description, AutoListIcons imageIndex) { this.text = text; this.description = description; this.imageIndex = imageIndex; }
/// <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); }
/// <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); }