Esempio n. 1
0
        private void MainFrame_Load(object sender, EventArgs e)
        {
            this.Hide();

            Thread th = new Thread(new ThreadStart(DoSplash));//启动界面窗口线程

            th.Start();
            Thread.Sleep(3000);
            th.Abort();


            FormLogin lg = new FormLogin();


            if (DialogResult.Cancel == lg.ShowDialog())
            {
                this.Close();
                return;
            }


            //this.WindowState = FormWindowState.Maximized;
            this.BackColor = System.Drawing.Color.White;

            m_usname            = lg.textBox_uname.Text;
            label1_welcome.Text = "您好 " + m_usname + " ,欢迎使用执法记录仪管理系统...";


            xPanderPanel4.Visible = false; //隐藏功能
            xPanderPanel1.Expand  = true;  //第2个为当前区域

            this.BackgroundImage = Image.FromFile(System.Windows.Forms.Application.StartupPath + "\\data\\main.md1");



            this.Show();
        }
Esempio n. 2
0
        private void MainFrame_Load(object sender, EventArgs e)
        {
            this.Hide();

            Thread th = new Thread(new ThreadStart(DoSplash));//启动界面窗口线程
            th.Start();
            Thread.Sleep(3000);
            th.Abort();

            FormLogin lg = new FormLogin();

            if (DialogResult.Cancel == lg.ShowDialog())
            {

                this.Close();
                return;
            }

            //this.WindowState = FormWindowState.Maximized;
            this.BackColor = System.Drawing.Color.White;

            m_usname = lg.textBox_uname.Text;
            label1_welcome.Text = "您好 " + m_usname + " ,欢迎使用执法记录仪管理系统...";

            xPanderPanel4.Visible = false;//隐藏功能
            xPanderPanel1.Expand = true;//第2个为当前区域

            this.BackgroundImage = Image.FromFile(System.Windows.Forms.Application.StartupPath + "\\data\\main.md1");

            this.Show();
        }