示例#1
0
文件: MnuFrm.cs 项目: markup007/Roys
        protected override void OnLoad(EventArgs e)
        {
            try
            {
                String baseUrl = "ftp://passionlabs.in/Raa/";
                String uName   = "passionlabs";
                String passWD  = "ron#29#TTk";

                //    Utils.getUpdates(baseUrl, uName, passWD, "Raa");
            }
            catch { }

            this.StartPosition = FormStartPosition.Manual;
            this.Location      = new Point(0, 0);
            this.KeyPreview    = true;
            MdiClient objMdiClient = null;

            foreach (Control cntrl in this.Controls)
            {
                if (cntrl is MdiClient)
                {
                    objMdiClient           = ((MdiClient)cntrl);
                    objMdiClient.BackColor = Color.White;
                    objMdiClient.Paint    += new PaintEventHandler(objMdiClient_Paint);
                }
            }
            GL_006 obj = new GL_006();

            obj.StartPosition = FormStartPosition.CenterParent;
            obj.ShowDialog();
            int i = Properties.Settings.Default.id;

            this.Text = obj.Nam;
            if (i != 0)
            {
                this.LoadMenu(i);
                Application.Idle += new EventHandler(Application_Idle);
            }
            this.KeyDown += new KeyEventHandler(MnuFrm_KeyDown);
            this.SetIdleTime();

            base.OnLoad(e);
        }
示例#2
0
文件: MnuFrm.cs 项目: markup007/Roys
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.id = 0;
            this.mun_mainMenu.Items.Clear();
            this.dt.Clear();
            GL_006 obj = new GL_006();

            obj.StartPosition = FormStartPosition.CenterParent;
            obj.ShowDialog();
            this.Text = obj.Nam;
            int i = Properties.Settings.Default.id;

            if (i != 0)
            {
                this.LoadMenu(i);
            }
            else
            {
                mun_mainMenu.Items.Clear();
            }
            this.SetIdleTime();
        }