private void sendTempFile() { FileMessageBubbleSent bbl = addSentFileMessageToUI(new FileMessage() { time = DateTime.Now }); // Thread.Sleep(400); middleController.fileShareController.SendChoosedFiles(tempSelectedFile); ShowBubbleSent(bbl); }
public void ShowBubbleSent(FileMessageBubbleSent bbl) { if (InvokeRequired) { Invoke(new MsgReceivedEventHandler(ShowBubble), bbl); return; } panel2.Controls.Add(bbl); workSpace.Top = bbl.Bottom + 20; bbl_old = bbl; panel2.VerticalScroll.Value = panel2.VerticalScroll.Maximum; }
public FileMessageBubbleSent addSentFileMessageToUI(FileMessage message) { String time = message.time.ToString("h:mm:ss tt"); FileMessageBubbleSent bbl = new FileMessageBubbleSent(fileShareMiddleController, time, MsgType.OUT); currentRunningBubbleSent = bbl; bbl.Location = refPanel1.Location; // bbl.Width = 375; // bbl.Height = 134; bbl.Anchor = refPanel1.Anchor; bbl.Top = bbl_old.Bottom + 10; return(bbl); }