Пример #1
0
 private void GetRightPanel()
 {
     try
     {
         using (DataClassesDataContext data = new DataClassesDataContext())
         {
             var lpTop = data.GetRightPanel_En().ToList();
             lblRPTitle.Text = lpTop[0].TENSANPHAM;
             lblRPContent.Text = lpTop[0].NOIDUNG;
         }
     }
     catch (Exception ex)
     {
         // error message here
     }
 }