private void HistoryExportImport_Load(object sender, EventArgs e) { EnumWrapper <WorkstationType> .LoadItems(localizedAllWorkstations); EnumWrapper <SynchType> .LoadItems(localizedSynchType); gridControlHistory.DataSource = exporter.GetAllPortions(); }
void LoadPortions() { IList <Portion> portions = exporter.GetAllPortions(); if (gridControlHistory.InvokeRequired) { gridControlHistory.Invoke(new MethodInvoker(() => { gridControlHistory.DataSource = portions; })); } else { gridControlHistory.DataSource = portions; } }