void tmiQuoteImage_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null) { MessageBox.Show("请选择现货记录。"); return; } int productid = 0; object obj = dataGridView1.CurrentRow.Cells["id"].Value; if (obj == null) { return; } if (int.TryParse(obj.ToString(), out productid) == false) { return; } FormImage form = new FormImage(productid, FishEntity.ImageTypeEnum.SGS); form.StartPosition = FormStartPosition.CenterParent; form.SetData(productid, FishEntity.ImageTypeEnum.SGS); form.ShowDialog(); }
private void btnimage_Click(object sender, EventArgs e) { if (formimage == null) { formimage = new FormImage(0, FishEntity.ImageTypeEnum.CHUKUDAN); } formimage.SetData(_model == null ? 0 : _model.id, FishEntity.ImageTypeEnum.CHUKUDAN); formimage.StartPosition = FormStartPosition.CenterParent; if (formimage.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }
private void btnbangdan_Click(object sender, EventArgs e) { if (formbangdan == null) { formbangdan = new FormImage(0, FishEntity.ImageTypeEnum.SGS); } formbangdan.SetData(_fish == null ? 0 : _fish.Id, FishEntity.ImageTypeEnum.SGS); formbangdan.StartPosition = FormStartPosition.CenterParent; if (formbangdan.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }
private void btnHeTong_Click(object sender, EventArgs e) { if (formimage == null) { formimage = new FormImage(0, FishEntity.ImageTypeEnum.HETONG); } formimage.SetData(setbool == null ? 0 : setbool.id, FishEntity.ImageTypeEnum.HETONG); formimage.StartPosition = FormStartPosition.CenterParent; if (formimage.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }