예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            minage = textBox1.Text;
            maxage = textBox2.Text;
            gender = textBox3.Text;

            if (!(gender.Equals("m") || gender.Equals("f")))
            {
                gender = "no preference set";
            }

            if (!(IsDigitsOnly(minage)) || minage.Equals(""))
            {
                minage = "no preference set";
                Console.WriteLine("agepreference odified");
            }
            if (!(IsDigitsOnly(maxage)) || maxage.Equals(""))
            {
                maxage = "no preference set";
            }

            this.Hide();
            MatchList ml = new MatchList(id, gender, minage, maxage);

            ml.ShowDialog();
        }
예제 #2
0
        private void back_Click(object sender, EventArgs e)
        {
            Console.WriteLine("goin back");
            this.Hide();
            MatchList mm = new MatchList(id, "please return to the \nmatch maker to set preferences", "", "");

            mm.ShowDialog();
        }