/// <remarks/> public void TransferChatAsync(ChatRequest chatRequest) { this.TransferChatAsync(chatRequest, null); }
/// <remarks/> public void TransferChatAsync(ChatRequest chatRequest, object userState) { if ((this.TransferChatOperationCompleted == null)) { this.TransferChatOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTransferChatOperationCompleted); } this.InvokeAsync("TransferChat", new object[] { chatRequest}, this.TransferChatOperationCompleted, userState); }
public void TransferChat(ChatRequest chatRequest) { this.Invoke("TransferChat", new object[] { chatRequest}); }
/// <remarks/> public void RemoveChatRequestAsync(System.Guid key, ChatRequest req, object userState) { if ((this.RemoveChatRequestOperationCompleted == null)) { this.RemoveChatRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveChatRequestOperationCompleted); } this.InvokeAsync("RemoveChatRequest", new object[] { key, req}, this.RemoveChatRequestOperationCompleted, userState); }
/// <remarks/> public void RemoveChatRequestAsync(System.Guid key, ChatRequest req) { this.RemoveChatRequestAsync(key, req, null); }
public void RemoveChatRequest(System.Guid key, ChatRequest req) { this.Invoke("RemoveChatRequest", new object[] { key, req}); }
private void btnTransfer_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you sure you want to transfer the chat session?", "Transfering chat", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { ChatRequest newReq = new ChatRequest(); newReq.OperatorId = Program.CurrentOperator.OperatorId; if (chkWarnVisitor.Checked) { ChatMessage msg = new ChatMessage(); msg.ChatId = ChatId; msg.Message = "Your chat session has been transfered to : " + cboOperators.Text; msg.Name = "System"; //msg.SentDate = DateTime.Now.ToUniversalTime().Ticks; ws.AddMessage(new Guid(Program.CurrentOperator.Password), msg); } ((ControlPanel)this.ParentForm).EndChat(null, ChatId); ws.TransferChat(newReq); } }