public TcpConnection(MainForm form) { activeForm = form; client = new TcpClient(); connect(); }
public WinnerForm(Tuple<string, string> chat) { mainForm = (MainForm)Application.OpenForms["MainForm"]; this.message = chat; InitializeComponent(); }