private void lstLinii_SelectedIndexChanged(object sender, EventArgs e)
 {
     tekovna = lstLinii.SelectedItem as Linija;
     if (tekovna != null)
     {
         btnKupiGuest.Enabled = true;
     }
 }
 private void btnDodadi_Click(object sender, EventArgs e)
 {
     linija            = new Linija(txtPocetna.Text, txtKrajna.Text, Convert.ToInt32(txtCena.Text), Convert.ToInt32(txtSlobodni.Text), txtMapa.Text);
     this.DialogResult = DialogResult.OK;
     this.Close();
 }
Ejemplo n.º 3
0
 public void AddLinija(Linija l)
 {
     Linii.Add(l);
 }