Exemple #1
0
        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));
        }
Exemple #2
0
        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();
        }
Exemple #5
0
        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;
            }
        }
Exemple #6
0
        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();
        }
Exemple #8
0
        private void tileAutor_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyAutor());

            formStandard.ShowDialog();
        }
Exemple #9
0
        private void tileIzdavac_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyIzdavac());

            formStandard.ShowDialog();
        }
Exemple #10
0
        private void tileNovaKnjiga_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyKnjiga());

            formStandard.ShowDialog();
        }
Exemple #11
0
        private void tileNoviRadnik_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyZaposleni());

            formStandard.ShowDialog();
        }