public MainForm() { f1 = this; currentClient = new ClientManager(f1); InitializeComponent(); SignForm SignForm = new SignForm(f1, currentClient); SignForm.ShowDialog(); filter = new WordFilterHelper(); ActionTime(); }
public MainForm() { InitializeComponent(); currentClient = new ClientManager(f1); currentClient.ReceiveMessageHandler += HandleReceivedMessages; f1 = this; currentClient.FindServer(); SignForm SignForm = new SignForm(f1, currentClient); SignForm.ShowDialog(); }
private void signButton_Click(object sender, EventArgs e) { tcpClient = new TcpClient(); tcpClient.Connect("127.0.0.1", 9876); stream = tcpClient.GetStream(); Hide(); SignForm signForm = new SignForm(); signForm.FormClosed += new FormClosedEventHandler(childForm_Closed); signForm.Show(); }