コード例 #1
0
 public void Regjistro(Golashenuesit g)
 {
     try
     {
         GolashenuesiDAL dal = new GolashenuesiDAL();
         dal.Shto(g);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public void Edito(Golashenuesit g)
 {
     try
     {
         GolashenuesiDAL dal = new GolashenuesiDAL();
         dal.Update(g);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #3
0
 public DataTable ShfaqListenEGolaShenuesve()
 {
     try
     {
         GolashenuesiDAL dal = new GolashenuesiDAL();
         var             r   = dal.GetAll();
         return(r);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #4
0
 public int GjejGolashenuesinmeID(Golashenuesit g)
 {
     try
     {
         GolashenuesiDAL dal = new GolashenuesiDAL();
         dal.MerrGolashenuesinMeID(g);
         int rowsAffected = g.lojtariID;
         return(rowsAffected);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #5
0
 public int Fshij(Golashenuesit g)
 {
     try
     {
         GolashenuesiDAL dal = new GolashenuesiDAL();
         dal.Fshij(g);
         int rowsAffected = g.GolashenuesiID;
         return(rowsAffected);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #6
0
        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;
        }