static void Test() { ChatMessageViewerControl c = new ChatMessageViewerControl(); //c.ResetContent("Hello"); c.AddInformation("Hello Again"); c.Dock = DockStyle.Fill; Form f = new Form(); f.Controls.Add(c); //OperaterServiceAgent = OperatorServiceAgent.Default; //OperaterServiceAgent.Login("100000", "user1", "123"); f.Show(); c.AddInformation("www"); Application.Run(f); }
static void Test() { ChatMessageViewerControl c = new ChatMessageViewerControl(); //c.ResetContent("Hello"); c.AddInformation("Hello Again"); c.Dock = DockStyle.Fill; Form f = new Form(); f.Controls.Add(c); //OperaterServiceAgent = OperatorServiceAgent.Default; //OperaterServiceAgent.Login("100000", "user1", "123"); f.Show(); c.AddInformation("www"); Application.Run(f); }