Esempio n. 1
0
        //***********************************************************************
        /// <summary>
        /// 添加产品信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <history>
        ///    完成信息:吴小科      2010/08/06 完成
        ///    更新信息:
        /// </history>
        //***********************************************************************
        private void btnInsert_Click(object sender, EventArgs e)
        {
            TradeNameManageForm tradeNameManage = new TradeNameManageForm();

            tradeNameManage.ShowDialog();
            DataBanding();
        }
Esempio n. 2
0
        private void TradeNameManage_Click(object sender, EventArgs e)
        {
            if (!CheckDog())
            {
                return;
            }

            FormCollection fc = Application.OpenForms;

            if (fc["TradeNameManageForm"] == null)
            {
                TradeNameManageForm tradeNameManageForm = new TradeNameManageForm();
                tradeNameManageForm.ShowDialog();
            }
            else
            {
                fc["TradeNameManageForm"].Select();
            }

            //if (CreateTab("品名管理", "品名管理"))
            //{
            //    TradeNameManageForm tradeNameManageForm = new TradeNameManageForm();

            //    SetTab(tradeNameManageForm);
            //}
        }