Пример #1
0
        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();
        }
Пример #2
0
 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)
     {
     }
 }
Пример #3
0
        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)
            {
            }
        }
Пример #4
0
        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)
            {
            }
        }