private void buttonOK_Click(object sender, EventArgs e) { this._pattern = (XTermBenchmarkPattern)this.comboBoxPattern.SelectedItem; this.DialogResult = DialogResult.OK; this.Close(); }
/// <summary> /// Constructor /// </summary> /// <param name="target">target object</param> /// <param name="pattern">benchmark pattern</param> public XTermBenchmark(ICommandTarget target, XTermBenchmarkPattern pattern) : base(target) { _socket = new MockSocket(); _connection = new MockTerminalConnection("xterm", _socket); _pattern = pattern; }