Exemple #1
0
        //Back button to homepage
        private void button4_Click(object sender, EventArgs e)
        {
            homepage hom = new homepage();

            this.Hide();
            hom.ShowDialog();
        }
        //Going to homepage when click on home button from dashboard
        private void homepagedash_Click(object sender, EventArgs e)
        {
            homepage hm = new homepage();

            this.Hide();
            hm.ShowDialog();
        }
Exemple #3
0
        private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (i >= 98)
            {
                bunifuCircleProgressbar1.Visible = false;
                contextMenuStrip1.Enabled        = true;
                button1.Visible  = true;
                textBox1.Enabled = true;
                textBox2.Enabled = true;

                if (cout >= 1)
                {
                    homepage home = new homepage(textBox1.Text);
                    this.Hide();
                    home.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Invalid Credential");
                }
            }
        }