private void PopupAgain() { IntelliSenseContext ctx = _context; Exit(); Popup(ctx); _listBox.Focus(); }
public void Popup(IntelliSenseContext ctx) { Debug.Assert(_context == null); _context = ctx; AdjustListBox(); this.Show(_context.OwnerControl, ToControlPoint(ctx.CommandStartPoint)); _listBox.Focus(); _status = ComplementStatus.Selecting; }
//ここまで private void Exit() { Debug.WriteLineIf(DebugOpt.IntelliSense, "Exit"); Debug.Assert(_context != null); ComplementStatus s = _status; _status = ComplementStatus.Exiting; this.Hide(); _context = null; _status = s; }
private bool _cancelLockFlag; //手動キャンセルしたら手動Enterがあるまで自動ポップアップはしない public IntelliSense(AbstractTerminal terminal) { _terminal = terminal; _context = new IntelliSenseContext(this); _terminal.PromptRecognizer.AddListener(this); }