示例#1
0
        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());
            }
        }
示例#2
0
        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());
        }