예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite koordinatora");
                return;
            }

            int odId            = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);
            KoordinatorBasic ob = DTOManager.GetKoordinatorBasic(odId);

            Izmena_Glasackog_Mesta edbForm = new Izmena_Glasackog_Mesta(ob);

            if (edbForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //MessageBox.Show("snimanje podataka");
                DTOManager.UpdateKoordinatorBasic(edbForm.kBasic);
                PopulateInfos();
            }
        }