Beispiel #1
0
        public Chatbox()
        {
            if (!this.DesignMode)
            {
                InitializeComponent();
            }

            bblPrev = new BubbleMessage();
        }
Beispiel #2
0
        public void addOutMessage(string message, string time)
        {
            BubbleMessage bbl = new JAssistant.BubbleMessage(message, time, MsgType.Out);

            bbl.Location = bubbleMessage2.Location;
            bbl.Size     = bubbleMessage2.Size;
            bbl.Anchor   = bubbleMessage2.Anchor;
            bbl.Top      = bblPrev.Bottom + OFFSET;

            panelChatHolder.Controls.Add(bbl);
            panelChatHolder.VerticalScroll.Value = panelChatHolder.VerticalScroll.Maximum;

            bblPrev = bbl;
        }