Beispiel #1
0
 static void Main(string[] args)
 {
     HobbyClient host = new HobbyClient();
     Console.WriteLine("Skriv in en filmtitel som du vill få veta vilket år den gjordes");
     var movie = Console.ReadLine();
     Console.WriteLine("År: " + host.MovieFromYear(movie));
     Thread.Sleep(5000);
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            HobbyClient host = new HobbyClient();
            Console.WriteLine("Skriv in ett år och få tillbaka vilken film som fick en Razzie för sämsta film det året");
            var year = Console.ReadLine();

            Console.WriteLine(host.WorstMovieTitle(year));
            System.Threading.Thread.Sleep(5000);
        }
Beispiel #3
0
        private void buttonResult_Click(object sender, EventArgs e)
        {
            var host   = new HobbyClient();
            var kilos  = textBoxKilo.Text;
            var gender = textBoxGender.Text;
            var input  = kilos + ";" + gender;

            labelResult.Text = host.AmIStrong(input);
        }
Beispiel #4
0
 private void buttonResult_Click(object sender, EventArgs e)
 {
     var host = new HobbyClient();
     var kilos = textBoxKilo.Text;
     var gender = textBoxGender.Text;
     var input = kilos + ";" + gender;
     labelResult.Text = host.AmIStrong(input);
     
 }
Beispiel #5
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 #6
0
 static void Main(string[] args)
 {
     Console.WriteLine("Fyll i hur mycket du tar i bänkpress (kg)");
     var kilo = Console.ReadLine();
     Console.WriteLine("Är du kvinna eller man?");
     var gender = Console.ReadLine();
     var input = kilo + ";" + gender;
     var host = new HobbyClient();
     Console.WriteLine(host.AmIStrong(input));
     Console.ReadLine();
 }
Beispiel #7
0
        static void Main(string[] args)
        {
            Console.WriteLine("Fyll i hur mycket du tar i bänkpress (kg)");
            var kilo = Console.ReadLine();

            Console.WriteLine("Är du kvinna eller man?");
            var gender = Console.ReadLine();
            var input  = kilo + ";" + gender;
            var host   = new HobbyClient();

            Console.WriteLine(host.AmIStrong(input));
            Console.ReadLine();
        }
Beispiel #8
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 #9
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 #10
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 #11
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     HobbyClient host = new HobbyClient();
     Label1.Text = host.WorstMovieTitle(TextBox1.Text);
 }
 public AllMovieYear()
 {
     host = new HobbyClient();
 }