コード例 #1
0
        public BackStyleManageForm()
        {
            InitializeComponent();

            SystemBackStyleApi.GetAllBackStyleFromServer(
                result => { gridControl1.DataSource = result; },
                message => { XtraMessageBox.Show(message); });
        }
コード例 #2
0
 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
     })));
 }