Beispiel #1
0
        private void frmArsenal_Load(object sender, EventArgs e)
        {
            RadSArsenalom.PopuniPostrojbama(cmbFilter);
            rdbPostrojba.Checked = true;

            RadSArsenalom.PrikaziPoPostrojbama(dgvArsenal, (int)cmbFilter.SelectedValue);
        }
Beispiel #2
0
        private void frmDodajArsenal_Load(object sender, EventArgs e)
        {
            RadSArsenalom.PopuniPostrojbama(cmbPostrojba);
            RadSArsenalom.PopuniOpremom(cmbOprema);

            if (id_oprema == 0 && id_oprema == 0)
            {
                this.Text = "Dodjela opreme";
            }
            else
            {
                this.Text = "Izmjena dodjele";

                foreach (var item in cmbPostrojba.Items)
                {
                    if ((item as Stavka).id_postrojbe == id_postrojba)
                    {
                        cmbPostrojba.SelectedItem = item;
                    }
                }

                foreach (var item in cmbOprema.Items)
                {
                    if ((item as oprema).id_oprema == id_oprema)
                    {
                        cmbOprema.SelectedItem = item;
                    }
                }
            }
        }
Beispiel #3
0
 private void rdbPostrojba_CheckedChanged(object sender, EventArgs e)
 {
     if (rdbPostrojba.Checked == true)
     {
         filter = 1;
         RadSArsenalom.PopuniPostrojbama(cmbFilter);
     }
     else
     {
         filter = 2;
         RadSArsenalom.PopuniOpremom(cmbFilter);
     }
 }