Пример #1
0
        public void addImageIn(Image img, string time)
        {
            bubble bb1 = new TestChat.bubble(img, time, bubble.msgtype.In, this);

            bb1.Location = new Point(21, 18);
            bb1.Size     = new Size(409, 87);
            if (!isFirst)
            {
                bb1.Top = bb1_old.Bottom + 10;
            }
            else
            {
                bb1.Top = 17;
            }
            panel2.Controls.Add(bb1);
            panel2.VerticalScroll.Value = panel2.VerticalScroll.Maximum;
            bb1_old = bb1;
            isFirst = false;
        }
Пример #2
0
        public void addFileOut(string filename, string path, string time)
        {
            bubble bb1 = new TestChat.bubble(filename, path, time, bubble.msgtype.Out, this);

            bb1.Location = new Point(21, 18);; bb1.Left += 330;
            bb1.Size     = new Size(409, 87);
            if (!isFirst)
            {
                bb1.Top = bb1_old.Bottom + 10;
            }
            else
            {
                bb1.Top = 17;
            }
            panel2.Controls.Add(bb1);
            panel2.VerticalScroll.Value = panel2.VerticalScroll.Maximum;
            bb1_old = bb1;
            isFirst = false;
        }