Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string name = NameBox.Text;

            if (name.Length > 0)
            {
                clientController.CreateAndSendMessage("open", name);
            }

            SpreadsheetGUI.Form1 spread = new SpreadsheetGUI.Form1(clientController, state, this);
            Hide();
            spread.Show();
        }
Esempio n. 2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            StringBuilder messageBuilder = new StringBuilder();

            messageBuilder.Append(listBox1.SelectedItem);
            Console.WriteLine(messageBuilder.ToString() + "This is message");
            if (messageBuilder.Length > 0)
            {
                clientController.CreateAndSendMessage("open", messageBuilder.ToString());
                SpreadsheetGUI.Form1 spread = new SpreadsheetGUI.Form1(clientController, state, this);
                Hide();
                spread.Show();
            }
        }