/// <summary> /// Handles the send button. /// </summary> /// <returns>The send button.</returns> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> private void HandleSendButton(object sender, View.TouchEventArgs e) { // multiple-clicking prevention using a threshold of 1000 ms if (SystemClock.ElapsedRealtime() - _lastSendClick < 1000) { return; } _lastSendClick = SystemClock.ElapsedRealtime(); _presenter.SendChat(_editText.Text).ConfigureAwait(false); CreateChatBox(false, _editText.Text); }
/// <summary> /// Handles the send button. /// </summary> /// <returns>The send button.</returns> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> private void HandleSendButton(object sender, EventArgs e) { _presenter.SendChat(_chatField.Text).ConfigureAwait(false); CreateChatBox(false, _chatField.Text); }