示例#1
0
        private void btnDodaj_Click(object sender, EventArgs e)
        {
            int          max  = listaKafi.Max((s) => s.KafaId);
            FrmKafaDodaj form = new FrmKafaDodaj(Operacija.Add, new Kafa()
            {
                KafaId = max + 1
            });

            form.ShowDialog();
        }
示例#2
0
        private void btnIzmeni_Click(object sender, EventArgs e)
        {
            Kafa k = SelectKafa();

            if (k is null)
            {
                return;
            }
            FrmKafaDodaj form = new FrmKafaDodaj(Operacija.Update, k);

            form.ShowDialog();
        }