Example #1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         Accept?.Invoke(this, new EventArgs());
     }
 }
Example #2
0
 private void buttonAccept_Click(object sender, EventArgs e)
 {
     if (Accept != null)
     {
         Accept.Invoke(this, EventArgs.Empty);
     }
 }
Example #3
0
 private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         e.SuppressKeyPress = true;
         Accept?.Invoke(this, new EventArgs());
     }
 }
Example #4
0
 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());
 }
Example #7
0
 private void button1_Click(object sender, EventArgs e)
 {
     Accept?.Invoke();
 }
Example #8
0
 private void Apply_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     Accept?.Invoke(this, _action);
     _mainWindow.GoToPage(MainWindow.Pages.Touch, true);
 }
Example #9
0
 private void Cancel_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     Accept?.Invoke(this, null);
     _mainWindow.GoToPage(MainWindow.Pages.Touch, true);
 }
Example #10
0
 public void OnAccept(AsyncUserToken asyncUserToken, int currentClientCount)
 {
     Accept?.Invoke(asyncUserToken, currentClientCount);
 }
Example #11
0
 void OnAccept(System.Net.Sockets.Socket socket)
 {
     Accept?.Invoke(this, socket);
 }
Example #12
0
            public void Foo()
            {
                Accept.Invoke(this, new AccountEventArg("What", 252));
//                Accept(this, new AccountEventArg("What", 252));
            }
Example #13
0
 protected virtual void OnAccept(IRoomUser user, bool accepted)
 => Accept?.Invoke(this, new TradeAcceptEventArgs(user, accepted));
Example #14
0
 protected virtual void OnAcceptCall(object sender, EventArgs args)
 {
     Accept.Invoke(sender, args);
 }