void updateDockData(MemberData.Dock dockData) { lvShipList.BeginUpdate(); foreach (ShipListViewItem it in lvShipList.Items) { it.Info.UpdateNDock(dockData.GetNDockNum(it.Info.ShipId)); it.UpdateItem(ShipListViewItem.ColumnIndex.DockName); } lvShipList.EndUpdate(); }
/// <summary> /// 入渠情報を反映 /// </summary> /// <param name="dockData"></param> public void UpdateShipListDock(MemberData.Dock dockData) { if (InvokeRequired) { BeginInvoke((MethodInvoker)(() => updateDockData(dockData))); } else { updateDockData(dockData); } }