private void repoShow_Click(object sender, EventArgs e) { string num = gridView1.GetFocusedRowCellValue("Itemcode").ToString(); if (num.Length > 0) { frmCreate f = new frmCreate(LoadDataEh(num)); f.ShowDialog(); LoadProVersion(); } }
private void repoedit_Click(object sender, EventArgs e) { string num = gvMain.GetFocusedRowCellValue("Itemcode").ToString(); string type = gvMain.GetFocusedRowCellValue("Zagvartype").ToString(); if (num.Length > 0) { frmCreate f = new frmCreate(list_main.Where(s => s.Itemcode == num && s.Zagvartype == type).First()); f.ShowDialog(); } }
private void repoedit_Click(object sender, EventArgs e) { string num = gridView1.GetFocusedRowCellValue("Itemcode").ToString(); if (num.Length > 0) { frmCreate f = new frmCreate(LoadDataEh(num)); f.ShowDialog(); LoadData(luplbl1.EditValue, luplbl2.EditValue); } }