Exemple #1
0
        private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            num = 1;
            DepotAddAndEdit da = new DepotAddAndEdit();

            da.ShowDialog();
        }
Exemple #2
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            num      = 0;
            dm.Id    = int.Parse(this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
            dm.Ckm   = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            dm.Phone = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            DepotAddAndEdit da = new DepotAddAndEdit();

            da.ShowDialog();
        }