public frmSliderMain(Guid guid, bool isShowMode) { InitializeComponent(); cls = SliderBussines.Get(guid); grpAccount.Enabled = !isShowMode; btnFinish.Enabled = !isShowMode; }
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); } }
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); } }
public frmSliderMain() { InitializeComponent(); cls = new SliderBussines(); }