public static CompletionWindow ShowCompletionWindow(Form parent, TextEditorControl control, ICompletionDataProvider completionDataProvider, Point location) { CompletionDataProvider = completionDataProvider; var completionData = CompletionDataProvider.GenerateCompletionData(null, null, ' '); if (completionData.Length == 0) { return(null); } var window = new CompletionWindow(parent, control); window.RefreshList(completionData); //window.SetLocation(); window.Location = location; window.ShowCompletionWindow(); return(window); }
public static CompletionWindow ShowCompletionWindow(Form parent, TextEditorControl control, string fileName, ICompletionDataProvider completionDataProvider, char firstChar) { CompletionDataProvider = completionDataProvider; var completionData = CompletionDataProvider.GenerateCompletionData(fileName, control.ActiveTextAreaControl.TextArea, firstChar); if (completionData.Length == 0) { return(null); } var window = new CompletionWindow(parent, control); window.RefreshList(completionData); window.SetLocation(); window.ShowCompletionWindow(); return(window); }