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

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

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

            NekretninaBasic         nb  = DTOManager.GetNekretninaBasic(nekId);
            NekretninaDodajAzuriraj nda = new NekretninaDodajAzuriraj(nb);

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