Esempio n. 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            Adminscreen adminscrn = new Adminscreen(mParent);

            adminscrn.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void settings_btn_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            Global.WTitle  = "Settings";
            if (this.WindowState == FormWindowState.Normal)
            {
                Global.size     = this.Size;
                Global.position = this.Location;
            }
            Global.windowstate = this.WindowState;

            if (Global.UserLevel == 1)
            {
                instellingen_zb settings = new instellingen_zb(this);
                settings.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
                settings.WindowState   = this.WindowState;
                if (this.WindowState != FormWindowState.Maximized)
                {
                    settings.Size     = this.Size;
                    settings.Location = this.Location;
                }
                settings.Show();
                Cursor.Current = Cursors.Default;
                this.Hide();
            }
            else if (Global.UserLevel == 2)
            {
                Adminscreen adminscrn = new Adminscreen(this);
                adminscrn.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
                adminscrn.WindowState   = this.WindowState;
                if (this.WindowState != FormWindowState.Maximized)
                {
                    adminscrn.Size     = this.Size;
                    adminscrn.Location = this.Location;
                }
                adminscrn.Show();
                Cursor.Current = Cursors.Default;
                this.Hide();
            }
        }