Beispiel #1
0
 private void buttonShoes_Click(object sender, EventArgs e)
 {
     var shoesName = textBoxShoes.Text;
     var size = int.Parse(textBoxSize.Text);
     var gender = radioButtonWoman.Text;
     if (radioButtonMan.Checked)
         gender = radioButtonMan.Text;
     HobbyClient hobby = new HobbyClient();
     labelAnswer.Text = hobby.Shoes(gender, shoesName, size);
 }
Beispiel #2
0
        private void buttonShoes_Click(object sender, EventArgs e)
        {
            var shoesName = textBoxShoes.Text;
            var size      = int.Parse(textBoxSize.Text);
            var gender    = radioButtonWoman.Text;

            if (radioButtonMan.Checked)
            {
                gender = radioButtonMan.Text;
            }
            HobbyClient hobby = new HobbyClient();

            labelAnswer.Text = hobby.Shoes(gender, shoesName, size);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Skriv in namnet på skon: ");
            var shoesName = Console.ReadLine();

            Console.WriteLine("Skriv in vilken storlek: ");
            var size = int.Parse(Console.ReadLine());

            Console.WriteLine("Skriv in om det ska vara dam eller herrmodell (Kvinna/Man): ");
            var gender = Console.ReadLine();

            HobbyClient hobby = new HobbyClient();
            Console.WriteLine(hobby.Shoes(gender, shoesName, size));
            Console.ReadLine();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Skriv in namnet på skon: ");
            var shoesName = Console.ReadLine();

            Console.WriteLine("Skriv in vilken storlek: ");
            var size = int.Parse(Console.ReadLine());

            Console.WriteLine("Skriv in om det ska vara dam eller herrmodell (Kvinna/Man): ");
            var gender = Console.ReadLine();

            HobbyClient hobby = new HobbyClient();

            Console.WriteLine(hobby.Shoes(gender, shoesName, size));
            Console.ReadLine();
        }