Exemplo n.º 1
0
        public PrikazTakmicara()
        {
            InitializeComponent();
            pretragaTextBox.AutoCompleteCustomSource.AddRange((string[])ClanDAO.imena().ToArray(typeof(string)));
            grupe = new Dictionary <string, ListViewGroup>();

            this.klubComboBox.SelectedIndexChanged       -= new System.EventHandler(this.klubComboBox_SelectedIndexChanged);
            this.datumComboBox.SelectedIndexChanged      -= new System.EventHandler(this.datumComboBox_SelectedIndexChanged);
            this.kategorijaComboBox.SelectedIndexChanged -= new System.EventHandler(this.kategorijaComboBox_SelectedIndexChanged);

            this.klubComboBox.Items.AddRange(KarateKlubDAO.naziviKlubova().ToArray());
            this.klubComboBox.SelectedIndex = 0;

            this.takmicenjeComboBox.Items.AddRange(TakmicenjeDAO.naziviSvi().ToArray());
            this.takmicenjeComboBox.SelectedIndex = 0;

            this.datumComboBox.Enabled      = false;
            this.kategorijaComboBox.Enabled = false;

            this.klubComboBox.SelectedIndexChanged       += new System.EventHandler(this.klubComboBox_SelectedIndexChanged);
            this.datumComboBox.SelectedIndexChanged      += new System.EventHandler(this.datumComboBox_SelectedIndexChanged);
            this.kategorijaComboBox.SelectedIndexChanged += new System.EventHandler(this.kategorijaComboBox_SelectedIndexChanged);

            osvjezi();
        }
        public EditovanjeTakmicara()
        {
            InitializeComponent();

            this.klubComboBox.Items.AddRange(KarateKlubDAO.naziviKlubova().ToArray());
            this.klubComboBox.SelectedIndex  = 0;
            this.pojasComboBox.SelectedIndex = 0;
        }
 public EditovanjeTakmicenja()
 {
     InitializeComponent();
     takmicenje = null;
     organizatorComboBox.Items.AddRange((string [])KarateKlubDAO.naziviKlubova().ToArray(typeof(string)));
 }