Пример #1
0
        void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                this.dataGridView_GoodList.Rows[e.RowIndex].Selected = true;
                MainForm pForm = (MainForm)this.ParentForm;

                string value = dataGridView_GoodList.Rows[e.RowIndex].Cells[0].Value.ToString();
                ManagerNavigation.Instance.Selected_Goods_Seq_ = Convert.ToInt32(value);

                CGoodsData pCGoodsData = GoodsManager.Instance.GetCGoodsData(ManagerNavigation.Instance.Selected_Goods_Seq_);

                UpdateGoodsForm pUpdateGoodsForm = new UpdateGoodsForm();
                pUpdateGoodsForm.SettingCurInfo(pCGoodsData);
                pUpdateGoodsForm.ShowDialog(this);
            }
        }
Пример #2
0
        void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                this.dataGridView_GoodList.Rows[e.RowIndex].Selected = true;
                MainForm pForm = (MainForm)this.ParentForm;

                string value = dataGridView_GoodList.Rows[e.RowIndex].Cells[0].Value.ToString();
                ManagerNavigation.Instance.Selected_Goods_Seq_ = Convert.ToInt32(value);

                CGoodsData pCGoodsData = GoodsManager.Instance.GetCGoodsData(ManagerNavigation.Instance.Selected_Goods_Seq_);

                UpdateGoodsForm pUpdateGoodsForm = new UpdateGoodsForm();
                pUpdateGoodsForm.SettingCurInfo(pCGoodsData);
                pUpdateGoodsForm.ShowDialog(this);
            }
        }