private void Order_Click(object sender, EventArgs e) { Hide(); OrderBoxForm f = new OrderBoxForm() { WindowState = FormWindowState.Maximized/*, MdiParent = MdiParent*/ }; DialogResult Result = f.ShowDialog(); Order.Visible = (Common.CurrentOrder != null); DialogResult = Result; }
public void GoodsPanel1_OrderBoxEvt(object sender, EventArgs e) { //Cursor = Cursors.WaitCursor; goodsPanel1.Visible = false; OrderBoxForm f = new OrderBoxForm() { WindowState = FormWindowState.Maximized /*, MdiParent = this*/ }; DialogResult Result = f.ShowDialog(); ProcessingResult(Result); goodsPanel1.Visible = true; //Cursor = Cursors.Default; }