Beispiel #1
0
        internal void PopunuFormu(string id, string naziv)
        {
            txtId.Text    = id;
            txtNaziv.Text = naziv;

            PocetnaForma.ApplyEnabledStyle(btnBack);
            PocetnaForma.ApplyEnabledStyle(btnEdit);
            this.Cursor = Cursors.Arrow;
        }
Beispiel #2
0
 public void PrikaziRezultatePretrage(int count)
 {
     if (count > 0)
     {
         PocetnaForma.ApplyEnabledStyle(btnDetails);
         isBtnDetailsEnabled = true;
     }
     else
     {
         PocetnaForma.ApplyDisabledStyle(btnDetails);
         isBtnDetailsEnabled = false;
     }
 }
Beispiel #3
0
 public void SetEnableControls(bool state)
 {
     stateEnabled   = state;
     cbSale.Enabled = state;
     datePickerTerminOdDatum.Enabled = state;
     datePickerTerminDoDatum.Enabled = state;
     datePickerTerminOdVreme.Enabled = state;
     datePickerTerminDoVreme.Enabled = state;
     dgvTimovi.Enabled = state;
     if (state)
     {
         PocetnaForma.ApplyEnabledStyle(btnSave);
         this.Cursor = Cursors.Arrow;
     }
     else
     {
         PocetnaForma.ApplyDisabledStyle(btnSave);
         this.Cursor = Cursors.WaitCursor;
     }
 }
Beispiel #4
0
 public void SetControlEnable(bool state)
 {
     isEnabled                      = state;
     txtNazivTima.Enabled           = state;
     checkListHirurzi.Enabled       = state;
     checkListStazisti.Enabled      = state;
     checkListSestre.Enabled        = state;
     checkListAnesteziolozi.Enabled = state;
     cbOdgovornoLice.Enabled        = state;
     if (state)
     {
         PocetnaForma.ApplyEnabledStyle(btnSave);
         PocetnaForma.ApplyEnabledStyle(btnBack);
         this.Cursor = Cursors.Arrow;
     }
     else
     {
         PocetnaForma.ApplyDisabledStyle(btnSave);
         PocetnaForma.ApplyDisabledStyle(btnBack);
         this.Cursor = Cursors.WaitCursor;
     }
 }
Beispiel #5
0
 internal void PrikaziRezultatPretrage()
 {
     PostaviDGView();
     isDetailsEnabled = true;
     PocetnaForma.ApplyEnabledStyle(btnDetails);
 }