示例#1
0
        private void btnDodaj_Click(object sender, EventArgs e)
        {
            KlijentDodajAzuriraj kda = new KlijentDodajAzuriraj();

            if (kda.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopulateInfos();
            }
        }
示例#2
0
        private void btnAzuriraj_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite klijenta!");
                return;
            }

            int klId = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);

            KlijentBasic         kb  = DTOManager.GetKlijentBasic(klId);
            KlijentDodajAzuriraj kda = new KlijentDodajAzuriraj(kb);

            if (kda.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopulateInfos();
            }
        }