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)); }
private void btnConsole_Click(object sender, EventArgs e) { TcpFactory.Show(); }