private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { Accept?.Invoke(this, new EventArgs()); } }
private void buttonAccept_Click(object sender, EventArgs e) { if (Accept != null) { Accept.Invoke(this, EventArgs.Empty); } }
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress = true; Accept?.Invoke(this, new EventArgs()); } }
private void Input_Accept(object sender, EventArgs args) { _done = true; Settings.WindowTitle = _input.Text; Accept?.Invoke(this, null); ((Input)sender).Close(); Close(); }
private void AcceptCallback(IAsyncResult ar) { Socket accepted; try { accepted = Connection.EndAccept(ar); Connections.Add(accepted); Connection.BeginAccept(AcceptCallback, null); SocketArgs args = new SocketArgs(accepted); Accept?.Invoke(this, args); accepted.BeginReceive(rcvBuffer, 0, GeneralBufferSize, SocketFlags.None, (ReceiveCallback), accepted); } catch { return; } }
private void executeAcceptCommand() { Accept?.Invoke(this, new EventArgs()); }
private void button1_Click(object sender, EventArgs e) { Accept?.Invoke(); }
private void Apply_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Accept?.Invoke(this, _action); _mainWindow.GoToPage(MainWindow.Pages.Touch, true); }
private void Cancel_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Accept?.Invoke(this, null); _mainWindow.GoToPage(MainWindow.Pages.Touch, true); }
public void OnAccept(AsyncUserToken asyncUserToken, int currentClientCount) { Accept?.Invoke(asyncUserToken, currentClientCount); }
void OnAccept(System.Net.Sockets.Socket socket) { Accept?.Invoke(this, socket); }
public void Foo() { Accept.Invoke(this, new AccountEventArg("What", 252)); // Accept(this, new AccountEventArg("What", 252)); }
protected virtual void OnAccept(IRoomUser user, bool accepted) => Accept?.Invoke(this, new TradeAcceptEventArgs(user, accepted));
protected virtual void OnAcceptCall(object sender, EventArgs args) { Accept.Invoke(sender, args); }