private void AddToolStripMenuItem_Click(object sender, EventArgs e) { OrderOperationForm addForm = new OrderOperationForm(); addForm.setMainFormOrderValue += getOrderValueAndAdd; addForm.Show(); }
private void ModifyToolStripMenuItem_Click(object sender, EventArgs e) { OrderOperationForm modifyForm = new OrderOperationForm(); modifyForm.Text = "修改订单"; modifyForm.operateOrderBtn.Text = "修改订单"; modifyForm.setMainFormOrderValue += getOrderValueAndModify; modifyForm.Show(); }