示例#1
0
        private Form ExecuteFunctions(StructInfo si)
        {
            Form f = new Form();

            switch (si.MenuId)
            {
            case 5001:
                Coster cost = new Coster();
                return(cost.Co);

            case 5002:
                UpdateddFilter f1 = new UpdateddFilter();
                return(f1);

                //f.ShowDialog();
                break;

            case 5003:
                CopyCondition fa = new CopyCondition();
                return(fa);

                //fa.ShowDialog();
                break;

            case 5004:
                CoPhanBoCP cocp = new CoPhanBoCP();
                return(cocp);

                break;
            }
            return(f);
        }
示例#2
0
文件: GiaThanh.cs 项目: nccong207/HTA
        public void Execute(DataRow drMenu)
        {
            int menuID = Int32.Parse(drMenu["MenuPluginID"].ToString());

            switch (menuID)
            {
            case 5001:
                Coster cost = new Coster(drMenu["ExtraSql"].ToString());
                break;

            case 5002:
                UpdateddFilter frm = new UpdateddFilter();
                frm.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                frm.Text          = _lstInfo[1].MenuName;
                frm.ShowDialog();
                break;
            }
        }