Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FabrikaService.FabrikaServiceClient client = new FabrikaService.FabrikaServiceClient();
            var tmp = client.PrikaziStanje();

            label1.Text = tmp.Zauzece.ToString();
            label2.Text = tmp.Gustina.ToString();
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     FabrikaService.FabrikaServiceClient client = new FabrikaService.FabrikaServiceClient();
     if (!client.DodajSastojak(textBox1.Text, double.Parse(textBox2.Text), double.Parse(textBox3.Text)))
     {
         MessageBox.Show("Nemoguce dodavanje!");
     }
 }
Beispiel #3
0
 private void button4_Click(object sender, EventArgs e)
 {
     FabrikaService.FabrikaServiceClient client = new FabrikaService.FabrikaServiceClient();
     if (!client.Flasiraj(double.Parse(textBox4.Text)))
     {
         MessageBox.Show("Nemoguce flasiranje");
     }
 }
Beispiel #4
0
        private void button5_Click(object sender, EventArgs e)
        {
            FabrikaService.FabrikaServiceClient client = new FabrikaService.FabrikaServiceClient();
            var tmp = client.VratiPromene();

            foreach (var s in tmp)
            {
                richTextBox1.AppendText(s + "\n");
            }
            richTextBox1.AppendText("############################\n");
        }
Beispiel #5
0
 private void button3_Click(object sender, EventArgs e)
 {
     FabrikaService.FabrikaServiceClient client = new FabrikaService.FabrikaServiceClient();
     client.IsprazniSistem();
 }