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

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

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

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

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

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

            formStandard.ShowDialog();
        }