public void Regjistro(Golashenuesit g) { try { GolashenuesiDAL dal = new GolashenuesiDAL(); dal.Shto(g); } catch (Exception ex) { throw ex; } }
public void Edito(Golashenuesit g) { try { GolashenuesiDAL dal = new GolashenuesiDAL(); dal.Update(g); } catch (Exception) { throw; } }
public DataTable ShfaqListenEGolaShenuesve() { try { GolashenuesiDAL dal = new GolashenuesiDAL(); var r = dal.GetAll(); return(r); } catch (Exception ex) { throw ex; } }
public int GjejGolashenuesinmeID(Golashenuesit g) { try { GolashenuesiDAL dal = new GolashenuesiDAL(); dal.MerrGolashenuesinMeID(g); int rowsAffected = g.lojtariID; return(rowsAffected); } catch (Exception ex) { throw ex; } }
public int Fshij(Golashenuesit g) { try { GolashenuesiDAL dal = new GolashenuesiDAL(); dal.Fshij(g); int rowsAffected = g.GolashenuesiID; return(rowsAffected); } catch (Exception ex) { throw ex; } }
private void button1_Click(object sender, EventArgs e) { GolashenuesiDAL obj = new GolashenuesiDAL(); obj.GetAllByList(); SeriesCollection series = new SeriesCollection(); foreach (var item in Golashenuesit.obj) { series.Add(new PieSeries() { Title = item.lojtariID.ToString(), Values = new ChartValues <int> { item.NumriGolave }, DataLabels = true, LabelPoint = labelPoint }); } pieChart1.Series = series; }