private void txtID_TextChanged(object sender, EventArgs e) { lblObavezno.Visible = false; if (txtID.Text == "") { txtName.Text = ""; SetLabelObavezno(""); PromjenaTipaClanarine?.Invoke(this, 0); return; } else { char[] str = txtID.Text.ToCharArray(); if (str[str.Length - 1] < 48 || str[str.Length - 1] > 57) { txtID.Text = ""; return; } FormStandard sf = new FormStandard(myInterface, StateEnum.LookUp, Convert.ToInt32(txtID.Text)); sf.Vrati(); Key = sf.Key; Value = sf.Value; txtName.Text = Value; } PromjenaTipaClanarine?.Invoke(this, Convert.ToInt32(txtID.Text)); }
private void tileDodajClanarinu_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyClanarina()); formStandard.tileObrisi.Enabled = false; formStandard.tileIzmijeni.Enabled = false; formStandard.ShowDialog(); }
private void tileRazduzivanje_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyIznajmljivanje()); formStandard.tileDodaj.Enabled = false; formStandard.tileObrisi.Enabled = false; formStandard.ShowDialog(); }
private void tilePretraga_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyKnjiga()); formStandard.tileDodaj.Enabled = false; formStandard.tileIzmijeni.Enabled = false; formStandard.tileObrisi.Enabled = false; formStandard.ShowDialog(); }
private void tileLookUp_Click_1(object sender, EventArgs e) { lblObavezno.Visible = false; FormStandard sf = new FormStandard(myInterface, StateEnum.LookUp); sf.ShowDialog(); if (sf.DialogResult == DialogResult.OK) { Key = sf.Key; txtID.Text = Key; } }
private void tileTipClanarine_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyTipClanarine()); formStandard.ShowDialog(); }
private void tileUnosClana_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyClan()); formStandard.ShowDialog(); }
private void tileAutor_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyAutor()); formStandard.ShowDialog(); }
private void tileIzdavac_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyIzdavac()); formStandard.ShowDialog(); }
private void tileNovaKnjiga_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyKnjiga()); formStandard.ShowDialog(); }
private void tileNoviRadnik_Click(object sender, EventArgs e) { FormStandard formStandard = new FormStandard(new PropertyZaposleni()); formStandard.ShowDialog(); }