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