Beispiel #1
0
        private void MessageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Homepage homepage = new Homepage(username);

            homepage.StartPosition = FormStartPosition.CenterScreen;
            homepage.Show();
        }
Beispiel #2
0
        private void To_HomePage(string username)
        {
            Hide();
            LoginAccount(username);
            Homepage homepage = new Homepage(username)
            {
                StartPosition = FormStartPosition.CenterScreen
            };

            homepage.Show();
        }
Beispiel #3
0
        private void Go_to_homepage(string username)
        {
            Homepage homepage = new Homepage(username)
            {
                StartPosition = FormStartPosition.CenterScreen
            };

            if (Homepage.client.success)
            {
                homepage.Show();
            }
            else
            {
                MessageBox.Show("Please contact administrator to get more information!", "Can't connect server!");
                CommonHandler.SafelyExit();
            }
        }