Exemple #1
0
        private void Button8_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite turnir kome zelite dodati organizatora!");
                return;
            }
            int         odId = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);
            TurnirBasic sb   = DTOManager.GetTurnirBasic(odId);

            IzaberiOrganizatora sbForm = new IzaberiOrganizatora(sb);

            sbForm.ShowDialog();
        }
        private void Button2_Click(object sender, EventArgs e)
        {
            if (listView2.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite turnir");
                return;
            }

            int         odId = Int32.Parse(listView2.SelectedItems[0].SubItems[0].Text);
            TurnirBasic tb   = DTOManager.GetTurnirBasic(odId);

            TurnirEditBasic tbForm = new TurnirEditBasic(tb);

            if (tbForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //DTOManager.UpdateTurnirBasic(tbForm.tBasic);
                //PopulateInfos();
            }
        }