private void promenaRadnje(object sender, EventArgs e) { pnlArhiva.Visible = false; pnlDodavanje.Visible = false; pnlRacunIzdavanje.Visible = false; if ((sender as RadioButton).Checked) { if ((sender as RadioButton).Name == "rb1Racun") { pnlRacunIzdavanje.Visible = true; } else if ((sender as RadioButton).Name == "rb2Artikal") { pnlDodavanje.Visible = true; } else { pnlArhiva.Visible = true; RadBaza.NapuniTabelu(dtRacun, "select * from racun"); } } AzuriranjePodataka(); dt.Clear(); PromenjenaTabela(); ObrisiSliku(); }
private void Form1_Load(object sender, EventArgs e) { RadBaza.NapuniDataSet(ds, ref dt); RadBaza.NapuniTabelu(dtGrupe, "select naziv, idgrupa from grupa"); //timer1.Start(); //timer1.Interval = 50; dpDatumDo.MinDate = dpDatumOd.Value; prikazArtikla = PromenjenaTabela; UcitavanjeNastavak(); }