Ejemplo n.º 1
0
        private async void ReplyTextBox_SendReply(object sender, string e)
        {
            bool result = await _client.AddReplyAsync(oid, e, type);

            if (result)
            {
                if (mode != 2)
                {
                    mode = 2;
                }
                ReplyTextBox.ClearText();
                new TipPopup("发送成功").ShowMessage();
                await Refresh();
            }
            else
            {
                new TipPopup("发送失败").ShowError();
            }
        }
Ejemplo n.º 2
0
 private void ScrollReplyBoxToBottom(object sender, System.Windows.Input.TextCompositionEventArgs e)
 {
     ReplyTextBox.UpdateLayout();
     replyScroll.ScrollToVerticalOffset(ReplyTextBox.ActualHeight);
 }