Example #1
0
 public TcpClientMockForm()
 {
     InitializeComponent();
     FormHelper.InitHabitToForm(this);
     OrgInfo org = new OrgInfo();
     org.FullName = "MockOrg";
     org.NickName = "Mock";
     org.Telephone = "MockPhone";
     org.Url = "MockUrl";
     MessageFactory.InitOrg(org);
     TcpClientFactory.Start();
     TcpClientFactory.InitMsgHandle(new MessageInfoHandle(NotifyMsg));
     TcpClientFactory.InitLogHandle(new LogHandle(LogParse));
     TcpClientFactory.InitParent(this);
     TcpFactory.InitMsgHandle(new MessageInfoHandle(MsgParse));
 }