示例#1
0
        private void buttonUplati_Click(object sender, EventArgs e)
        {
            Racunovodstvo rac = Racunovodstvo.GetRacunovodstvo();

            if (textUplati.Text != "")
            {
                try
                {
                    float n = float.Parse(textUplati.Text.ToString());
                    rac.uplati(Form1.dveDecim(n));
                }
                catch
                {
                    Console.WriteLine("Krivi unos");
                }
                textUplati.Text = "";
            }
        }
示例#2
0
        public void uplati(float novac)
        {
            Racunovodstvo rac = Racunovodstvo.GetRacunovodstvo();

            rac.uplati(novac);
        }