Esempio n. 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     BankService.BankServiceClient client = new BankService.BankServiceClient();
     if (!client.Withdraw(Double.Parse(textBox4.Text)))
     {
         MessageBox.Show("Nemate dovoljno novca na racunu!");
     }
 }
Esempio n. 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            BankService.BankServiceClient client = new BankService.BankServiceClient();
            var tmp = client.ShowLog();

            foreach (string s in tmp)
            {
                richTextBox1.AppendText(s + "\n");
            }
            richTextBox1.AppendText("###################################");
        }
Esempio n. 3
0
 private void button4_Click(object sender, EventArgs e)
 {
     BankService.BankServiceClient client = new BankService.BankServiceClient();
     client.SelectAccount(Int32.Parse(textBox5.Text));
 }
Esempio n. 4
0
 private void button2_Click(object sender, EventArgs e)
 {
     BankService.BankServiceClient client = new BankService.BankServiceClient();
     client.UpdateBalance(Double.Parse(textBox1.Text), textBox2.Text, Double.Parse(textBox3.Text));
 }
Esempio n. 5
0
 private void button1_Click(object sender, EventArgs e)
 {
     BankService.BankServiceClient client = new BankService.BankServiceClient();
     label1.Text = client.ShowInDinars().ToString();
 }