Example #1
0
        private void btnCreateOrder_Click(object sender, EventArgs e)
        {
            #region  递订单号给下一个窗体

            var frmOrderCreation = new OrderCreationPage();
            EvtCreateNewOrder += frmOrderCreation.Receiver;
            EvtCreateNewOrder(_objOrder);
            OpenNewForm(frmOrderCreation);

            #endregion

            #region 回传消息给主窗体,让其刷新交易列表

            //this.EvtSendMsg("refresh");
            //this.Close();

            #endregion
        }
Example #2
0
 /// <summary>
 ///     create the order
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAddOrder_Click(object sender, EventArgs e)
 {
     _frmOrderCreation = new OrderCreationPage();
     DisplayMainFrm(false);
     OpenNewForm(_frmOrderCreation);
 }