Beispiel #1
0
        private void Button4_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite organizatora!");
                return;
            }
            int odId = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);
            OrganizatoriHomeBasic sb = DTOManager.GetOrganizatoriHomeBasic(odId);

            IzmeniOrganizatora sbForm = new IzmeniOrganizatora(sb);

            if (sbForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                DTOManager.UpdateOrganizatoriHomeBasic(sbForm.tBasic);
                populateInfos();
            }
        }
 public IzmeniOrganizatora(OrganizatoriHomeBasic sb)
 {
     this.tBasic = sb;
     InitializeComponent();
     PopulateData();
 }