public void getInformation() { Form2 form2 = new Form2(); form2.ShowDialog(); if (form2.checkClient.Connected) { client = new Client(form2.checkClient, writeMessage, usersChanged); writeMessage("You have been connected.\n"); writeMessage("Please type your name.\n"); FileManager.saveToPreviousIps(form2.address); changeToolStrips(FileManager.getPreviousIps()); } }
private void Messenger_Load(object sender, EventArgs e) { this.Show(); AcceptButton = sendButton; client = new Client(writeMessage, usersChanged); FileManager.getConfiguration(); saveHistoryToolStripMenuItem.Checked = Config.saveChatHistory; changeToolStrips(FileManager.getPreviousIps()); }