// 作業項目マスタデータをItemList画面から得る private void chooseItemData() { WorkItemsData wids = FormItemList.ReceiveItems(wid); if (wids == null) { return; } viewItemDataToDgv(dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y], wids); Calculation calc = new Calculation(); if (calc.ExtractCalcWord(Convert.ToString(dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells["Item"].Value)) != null) { verticalCalc(); } }
// 作業項目マスタデータをItemList画面から得る private void chooseItemData(DataGridView dgv) { WorkItemsData wids = FormItemList.ReceiveItems(wid); if (wids == null) { return; } viewItemDataToDgv(dgv.Rows[dgv.CurrentCellAddress.Y], wids); if (wids.Unit != "") { dgv.CurrentCell = dgv.Rows[dgv.CurrentCellAddress.Y].Cells["Quantity"]; } Calculation calc = new Calculation(); if (calc.ExtractCalcWord(Convert.ToString(dgv.Rows[dgv.CurrentCellAddress.Y].Cells["Item"].Value)) != null) { verticalCalc(dgv); } }