/// <summary> /// A Domain Up/Down control used to select a time from a range. /// </summary> public OrderTypePicker() { // Initialize the designer maintained resources. InitializeComponent(); // Initialize the object. this.mnemonicText = string.Empty; // This delegate is used to call the foreground when the attempt to find a matching symbol in the security table has // completed. this.autoCompleteCallback = new AutoCompleteCallback(OnTextCompleted); this.initializationCallback = new InitializationCallback(OnInitializationCompleted); #if DEBUG if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { #endif // A background thread will extract the order type information and pass it to the foreground. ThreadPool.QueueUserWorkItem(new WaitCallback(InitializeThread)); #if DEBUG } #endif }
public ReadEvalPrintLoop(AutoCompleteCallback autoCompleteCallback, ExecuteCallback executeCallback, string prompt = "$>", string historyFile = null) { AutoCompleteHook = autoCompleteCallback; ExecuteHook = executeCallback; Prompt = prompt; if (historyFile != null) { History = File.ReadAllText(historyFile) .Split(Environment.NewLine) .ToList(); } }