示例#1
0
文件: LogIn.cs 项目: JackMaca/Log-In
 //returns to the first User Form
 private void backButton_Click(object sender, EventArgs e)
 {
     Form f = this.FindForm();
     f.Controls.Remove(this);
     MainScreen ms = new MainScreen();
     f.Controls.Add(ms);
 }
示例#2
0
文件: About.cs 项目: JackMaca/Log-In
        //returns users to home page
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();
            f.Controls.Remove(this);

            MainScreen ms = new MainScreen();
            f.Controls.Add(ms);
            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
        }
示例#3
0
文件: LogIn.cs 项目: JackMaca/Log-In
        //returns to the first User Form
        private void backButton_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);
            MainScreen ms = new MainScreen();

            f.Controls.Add(ms);
        }
示例#4
0
文件: Form1.cs 项目: JackMaca/Log-In
        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();
            this.Controls.Add(ms);

            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
            ms.Show();
        }
示例#5
0
        //returns users to home page
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);

            MainScreen ms = new MainScreen();

            f.Controls.Add(ms);
            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
        }
示例#6
0
文件: Form1.cs 项目: JackMaca/Log-In
        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();

            this.Controls.Add(ms);

            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
            ms.Show();
        }