Ejemplo n.º 1
0
        public FrmQueryCondition(string[,] strsTmp, DataTable[] dtTmp)
        {
            InitializeComponent();
            strsControlTmp = strsTmp;
            dt             = dtTmp;

            if (SystemInfo.user.Lanuage != "Chinese")
            {
                BSBLL.SetFormLanguages(this);//设置DockContent中的语种
            }
        }
Ejemplo n.º 2
0
        public static MenuStrip mnsMain = new MenuStrip();//主菜单

        public FrmMain()
        {
            frmMain = this;
            InitializeComponent();
            toolStripContainer1.TopToolStripPanel.Controls.Add(mnsMain);
            //PSAP.BLL.BSBLL.BSBLL.InitUserMenus(this);//初始化主菜单用户权限(不用了这是以前设置实例菜单的)
            FrmMainBLL.InitMenuItem(mnsMain);                                             //初始化菜单
            FrmMainBLL.SetMenuItemByRole(mnsMain, SystemInfo.user.RoleNo);                //初始化用户"角色"权限
            FrmMainBLL.SetMenuItemByPersonal(mnsMain, SystemInfo.user.AutoId.ToString()); //初始化用户"个人"权限
            //FrmMainTool frmMainTool = new FrmMainTool(mnsMain);//menuStrip1(实例菜单)
            ////frmMainTool.HideOnClose = true;//使用就无法触发窗口关闭事件了
            //frmMainTool.Show(this.dockPanel1, DockState.DockLeft);

            //BSBLL.RefreshUserThemeConfigFile();//刷新用户主题配置文件(暂不用了)
            BSBLL.InitThemeVariable();//初始化主题变量(暂不用了)

            if (SystemInfo.user.Lanuage != "Chinese")
            {
                BSBLL.SetFormLanguages(this);//设置DockContent中的语种
            }
        }