private void BtnPosition_Click(object sender, EventArgs e) { int maxPackageNo = list.Select(x => x.PackageNo).Distinct().Count(); w_DataPosition frm = new w_DataPosition(maxPackageNo); frm.ShowDialog(); if (DataPosition.ID > 0) { index = DataPosition.ID - 1; SwichPackage(); DataPosition.ID = 0; DataPosition.PackageNo = 0; } }
private void BtnPosition_Click(object sender, EventArgs e) { //int currentPackageNo = list.Where(item => item.LabelingStatus == "未完成").Min(item => item.PackageNo); int maxPackageNo = list.Select(x => x.PackageNo).Distinct().Count(); w_DataPosition frm = new w_DataPosition(maxPackageNo); frm.ShowDialog(); if (DataPosition.ID > 0) { index = DataPosition.ID - 1; SwichPackage(); DataPosition.ID = 0; DataPosition.PackageNo = 0; } }