// 四.MDI中的调用===通过子类的静态方法实例化窗体

        /*
         *  FormOrderMana frm = FormOrderMana.CreateFrom();
         *  frm.MdiParent = this;
         *  frm.Show();  */
        private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormOrderInfo order = new FormOrderInfo();

            order.Owner = this;
            order.Text  = "添加订单";
            order.ShowDialog();
        }
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.SelectedRows.Count < 1)
            {
                MessageBox.Show("请选择需要查看的订单");
                return;
            }
            FormOrderInfo order = new FormOrderInfo();

            order.Owner   = this;
            order.Text    = "查看订单";
            order.orderid = dataGridView1.SelectedRows[0].Cells["订单流水号"].Value.ToString();
            order.ShowDialog();
        }
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count < 1)
            {
                MessageBox.Show("请选择需要修改的订单");
                return;
            }

            FormOrderInfo order = new FormOrderInfo();

            order.Owner   = this;
            order.Text    = "修改订单";
            order.orderid = dataGridView1.SelectedRows[0].Cells["订单流水号"].Value.ToString();
            order.ShowDialog();
        }