private void 编辑图片ToolStripMenuItem_Click(object sender, EventArgs e) { var oids = GetOrderIdsBySelectedGridCell(); var row = dataGridView.Rows[Rowindex]; selcetitem = new clsFile_Managermentinfo(); var model = row.DataBoundItem as clsFile_Managermentinfo; selcetitem = model; if (selcetitem != null) { if (oids.Count < 1) { oids.Add(""); } var form = new frmPicEdit(oids[0], selcetitem); if (form.ShowDialog() == DialogResult.OK) { } } else { MessageBox.Show("请选择条目"); } }
private void toolStripDropDownButton1_Click(object sender, EventArgs e) { var row = dataGridView.Rows[Rowindex]; selcetitem = new clsFile_Managermentinfo(); var model = row.DataBoundItem as clsFile_Managermentinfo; selcetitem = model; var oids = GetOrderIdsBySelectedGridCell(); if (oids.Count > 0 && selcetitem != null && oids[0] != null) { var form = new frmPicEdit(oids[0].ToString(), selcetitem); if (form.ShowDialog() == DialogResult.OK) { } } else { MessageBox.Show("请选择类目再次尝试!"); } }
private void button4_Click(object sender, EventArgs e) { // if (filename.Count > 0) { if (iitem1 != null && iitem1.accfile_id != null && iitem1.accfile_id != "") { var form = new frmPicEdit(iitem1.accfile_id, iitem1); if (form.ShowDialog() == DialogResult.OK) { } } } }