private void 仓库管理ToolStripMenuItem_Click(object sender, EventArgs e) { WarehouseView rv = new WarehouseView(); //rv.MdiParent = this; rv.Show(); }
public WarehousePopup(WarehouseView form, string type, int wid, object obj) { parentForm = form; this.type = type; this.wid = wid; InitializeComponent(); if (type == "cw") { this.Text = "仓位"; } if (obj != null) { if (type == "cw") { oldpm = (PositionModel)obj; textBox1.Text = oldpm.Num; textBox2.Text = oldpm.Name; } else { oldwm = (WarehouseModel)obj; textBox1.Text = oldwm.Num; textBox2.Text = oldwm.Name; } } }