Example #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));
        }
Example #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();
        }
Example #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();
        }
Example #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();
        }
Example #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;
            }
        }
Example #6
0
        private void tileTipClanarine_Click(object sender, EventArgs e)
        {
            FormStandard formStandard = new FormStandard(new PropertyTipClanarine());

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

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

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

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

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

            formStandard.ShowDialog();
        }