private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == null || textBox2.Text != textBox3.Text)
     {
         label4.Visible = true;
     }
     else
     {
         Topic_selection topicselection = new Topic_selection();
         this.Close();
         topicselection.Show();
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == null || textBox2.Text != textBox3.Text)
            {
                label4.Visible = true;
            }
            else
            {
                Chatter.chatter_myself = new Chatter(Program.myself, textBox1.Text, textBox2.Text);

                Topic_selection topicselection = new Topic_selection();
                this.Close();
                topicselection.Show();
            }
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            String str_username = textBox1.Text;
            String str_password = textBox2.Text;

            bool check = false;

            while (check)
            {
                Net.sendMsg(Program.myself.comm.GetStream(), new Access_message(str_username, str_password));


                Authentication_message aumsg = (Authentication_message)Net.rcvMsg(Program.myself.comm.GetStream());
                if (check == aumsg.authentication)
                {
                    Chatter.chatter_myself = new Chatter(Program.myself, str_username, str_password);
                    Topic_selection topicselection = new Topic_selection();
                    this.Close();
                    topicselection.Show();
                }
            }
        }