Exemplo n.º 1
0
        private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            num = 1;
            DepotAddAndEdit dem = new DepotAddAndEdit();

            dem.ShowDialog();
        }
Exemplo n.º 2
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            gd.GoodsID     = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            gd.GName       = this.dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
            gd.UnitPrice   = double.Parse(this.dataGridView1.SelectedRows[0].Cells[2].Value.ToString());
            gd.Manufacture = this.dataGridView1.SelectedRows[0].Cells[3].Value.ToString();


            num = 0;
            DepotAddAndEdit dem = new DepotAddAndEdit();

            dem.ShowDialog();
        }