Exemple #1
0
        public Chatform CreateChatForm()
        {
            Chatform form = new Chatform();

            form.Chatroom = Chatroom;
            return(form);
        }
Exemple #2
0
 public void Run()
 {
     try {
         Chatform form = CreateChatForm();
         Application.Run(form);
     } finally {
         TearDown();
     }
 }
Exemple #3
0
        public override void Setup() {
            base.Setup();

            m_usernameTextbox = new TextBoxTester("m_usernameTextbox");
	    m_connectButton = new ButtonTester("m_connectButton");
	    m_disconnectbutton = new ButtonTester("m_disconnectbutton");
	    m_sendMsgButton = new ButtonTester("m_sendMsgButton");
	    m_sendMsgAsyncButton = new ButtonTester("m_sendMsgAsyncButton");
            m_connectedLabel = new LabelTester("m_constatus");
            m_messageTextbox = new TextBoxTester("m_messageTextbox");
            m_messagesTester = new ListBoxTester("m_messages");
            m_client = new Client("localhost", 8087, 0);
            m_chatform = m_client.CreateChatForm();
            m_chatform.Show();
            m_usernameTextbox.Enter("test");
	    m_connectButton.Click();
        }
Exemple #4
0
 public override void TearDown() {
     m_disconnectbutton.Click();            
     m_chatform = null;
     m_client.TearDown();
     base.TearDown();
 }
Exemple #5
0
 public Chatform CreateChatForm() {
     Chatform form = new Chatform();
     form.Chatroom = Chatroom;            
     return form;
 }
 public MessageListenerImpl(string userName, Chatform view) {
     m_userName = userName;
     m_view = view;
 }
 public MessageListenerImpl(string userName, Chatform view)
 {
     m_userName = userName;
     m_view     = view;
 }