コード例 #1
0
ファイル: MenuToolbar.cs プロジェクト: nlh774/SmoWMS
        /// <summary>
        /// 菜单点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolBar_ToolbarItemClick(object sender, ToolbarClickEventArgs e)
        {
            switch (e.Name)
            {
            case "仓库":
                frmMenu frmMenu = new frmMenu();
                Form.Close();
                this.Form.Show(frmMenu);
                break;

            case "订单":
                frmOrder frmOrder = new frmOrder();
                Form.Close();
                this.Form.Show(frmOrder);
                break;

            case "主数据":
                frmMasterData frmMasterData = new frmMasterData();
                Form.Close();
                this.Form.Show(frmMasterData);
                break;

            case "统计":
                frmAnalyze frmAnalyse = new frmAnalyze();
                Form.Close();
                this.Form.Show(frmAnalyse);
                break;

            case "设置":
                frmMessage frmMessage = new frmMessage();
                Form.Close();
                this.Form.Show(frmMessage);
                break;
            }
        }
コード例 #2
0
ファイル: MenuToolbar.cs プロジェクト: yexinw/SmoWMS
        private void showForm(string ename)
        {
            switch (ename)
            {
            case "仓库":
                // frmMenu frmMenu = new frmMenu();
                //this.Form.Show(frmMenu, (obj, arg) =>
                //{
                //    showForm(frmMenu.menuToolbar.selectName);
                //});
                //Form.Close();
                //this.Form.Show(frmMenu);
                break;

            case "订单":
                frmOrder frmOrder = new frmOrder();
                this.Form.Show(frmOrder, (obj, arg) =>
                {
                    showForm(frmOrder.menuToolbar.selectName);
                });
                //Form.Close();
                //this.Form.Show(frmOrder);
                break;

            case "主数据":
                frmMasterData frmMasterData = new frmMasterData();
                this.Form.Show(frmMasterData, (obj, arg) =>
                {
                    showForm(frmMasterData.menuToolbar.selectName);
                });
                //Form.Close();
                //this.Form.Show(frmMasterData);
                break;

            case "统计":
                frmAnalyze frmAnalyse = new frmAnalyze();
                this.Form.Show(frmAnalyse, (obj, arg) =>
                {
                    showForm(frmAnalyse.menuToolbar.selectName);
                });
                //Form.Close();
                //this.Form.Show(frmAnalyse);
                break;

            case "设置":
                frmMessage frmMessage = new frmMessage();
                this.Form.Show(frmMessage, (obj, arg) =>
                {
                    showForm(frmMessage.menuToolbar.selectName);
                });
                //Form.Close();
                //this.Form.Show(frmMessage);
                break;
            }
        }
コード例 #3
0
ファイル: frmQuestions.cs プロジェクト: NarayanaswamyR/A4
        private void btnAddNewRelations_Click(object sender, EventArgs e)
        {
            frmMasterData masterData = new frmMasterData();

            masterData.ShowDialog();
        }
コード例 #4
0
        private void button4_Click(object sender, EventArgs e)
        {
            frmMasterData md = new frmMasterData();

            md.Show();
        }