예제 #1
0
        //void Default_StyleChanged(object sender, EventArgs e)
        //{
        //    string skinName = UserLookAndFeel.Default.SkinName;
        //    bool border = skinName.StartsWith("Sharp", StringComparison.OrdinalIgnoreCase);
        //    if (border)
        //    {
        //        pnlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
        //    }
        //    else
        //    {
        //        pnlTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
        //    }

        //    // pnlLogo.BackColor = pnlTop.BackColor;
        //    pnlTop.Refresh();
        //}

        private void frmConsole_Load(object sender, EventArgs e)
        {
            InitTree();
            InitDW();


            // 打开首页
            var host = ConfigurationManager.AppSettings["Host"].ToString();
            var url  = host + "/drp/NoticeIndex.html?p_USERID=" + UserInfo.UserCode + "&p_USERNAME="******"首页";
            form.Tag       = "main";
            form.Show();
            FormList["main"] = form;

            SplashScreenManager.CloseForm(false);
            this.WindowState = FormWindowState.Maximized;


            timer1.Interval = 1000;
            timer1.Start();
        }
예제 #2
0
        private void openURL(string name, string ruleID, string url)
        {
            if (FormList.ContainsKey(ruleID))
            {
                FormList[ruleID].Activate();
                return;
            }

            FormCef form = new FormCef();

            form.SetURL(url);
            form.Text      = name;
            form.parentFF  = this;
            form.Tag       = ruleID;
            form.MdiParent = this;
            form.Show();
            FormList[ruleID] = form;
        }