Beispiel #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));
        }
Beispiel #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();
        }
Beispiel #3
0
        private void tileRazduzivanje_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyIznajmljivanje());

            formStandard.tileDodaj.Enabled  = false;
            formStandard.tileObrisi.Enabled = false;
            formStandard.ShowDialog();
        }
Beispiel #4
0
        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();
        }
Beispiel #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;
            }
        }
Beispiel #6
0
        private void tileTipClanarine_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyTipClanarine());

            formStandard.ShowDialog();
        }
Beispiel #7
0
        private void tileUnosClana_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyClan());

            formStandard.ShowDialog();
        }
Beispiel #8
0
        private void tileAutor_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyAutor());

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

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

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

            formStandard.ShowDialog();
        }