public BackStyleManageForm() { InitializeComponent(); SystemBackStyleApi.GetAllBackStyleFromServer( result => { gridControl1.DataSource = result; }, message => { XtraMessageBox.Show(message); }); }
public EnvelopeSettingControl() { InitializeComponent(); SystemSizeApi.GetSizeInfoFromServer("productSize", response => { response.ForEach(k => productSizeList.Items.Add(new PostSize { Name = k.Name, Width = k.Width, Height = k.Height })); productSizeList.Refresh(); }); SystemBackStyleApi.GetAllBackStyleFromServer(success => success.ForEach(backStyle => backStyleList.Items.Add(new BackStyleInfo { FileId = backStyle.FileId, Name = backStyle.Name }))); }