예제 #1
0
 public frmSliderMain(Guid guid, bool isShowMode)
 {
     InitializeComponent();
     cls = SliderBussines.Get(guid);
     grpAccount.Enabled = !isShowMode;
     btnFinish.Enabled  = !isShowMode;
 }
예제 #2
0
        private async Task LoadData(string search = null)
        {
            try
            {
                var liat = await SliderBussines.GetAllAsync(search);

                SliderBindingSource.DataSource = liat.ToSortableBindingList();
            }
            catch (Exception e)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(e);
            }
        }
예제 #3
0
 public static WebSlider Get(Guid guid)
 {
     try
     {
         var prd     = SliderBussines.Get(guid);
         var mapList = Mappings.Default.Map <WebSlider>(prd);
         return(mapList);
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
         return(null);
     }
 }
예제 #4
0
 public frmSliderMain()
 {
     InitializeComponent();
     cls = new SliderBussines();
 }