Пример #1
0
        private void buttonMasuk_Click(object sender, EventArgs e)
        {
            Form3Masuk Masuk = new Form3Masuk();

            Masuk.Closed += (s, args) => this.Close();
            Masuk.ShowDialog();
            this.Hide();
            this.Close();
        }
Пример #2
0
        private void buttonCSyarat_Click(object sender, EventArgs e)
        {
            if (beranda != null & masuk != null)
            {
                panelContainer.Controls.Remove(beranda);
                panelContainer.Controls.Remove(masuk);
                beranda.Close(); masuk.Close();
                beranda = null; masuk = null;
            }
            Form4Peraturan Formsyarat = new Form4Peraturan();

            Formsyarat.TopLevel = false;
            Formsyarat.Size     = panelContainer.Size;
            panelContainer.Controls.Add(Formsyarat);
            Formsyarat.Show();
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (beranda != null & masuk != null)
            {
                panelContainer.Controls.Remove(beranda);
                panelContainer.Controls.Remove(masuk);
                beranda.Close(); masuk.Close();
                beranda = null; masuk = null;
            }
            Form1Container container = new Form1Container();

            container.TopLevel = false;
            container.Size     = panelContainer.Size;
            panelContainer.Controls.Add(container);
            container.Show();
        }
Пример #4
0
        private void buttonCBeranda_Click(object sender, EventArgs e)
        {
            if (masuk != null & syarat != null)
            {
                panelContainer.Controls.Remove(masuk);
                panelContainer.Controls.Remove(syarat);
                masuk.Close(); syarat.Close();
                masuk = null; syarat = null;
            }

            Form2Beranda Formberanda = new Form2Beranda();

            Formberanda.TopLevel = false;
            Formberanda.Size     = panelContainer.Size;
            panelContainer.Controls.Add(Formberanda);
            Formberanda.Show();
        }
Пример #5
0
        private void buttonCMasuk_Click(object sender, EventArgs e)
        {
            buttonCMasuk.Enabled  = false;
            buttoncKeluar.Enabled = true;
            buttoncKeluar.Visible = true;
            if (beranda != null & syarat != null)
            {
                panelContainer.Controls.Remove(beranda);
                panelContainer.Controls.Remove(syarat);
                beranda.Close(); syarat.Close();
                beranda = null; syarat = null;
            }
            Form3Masuk Formmasuk = new Form3Masuk();

            Formmasuk.TopLevel = false;
            Formmasuk.Size     = panelContainer.Size;
            panelContainer.Controls.Add(Formmasuk);
            Formmasuk.Show();
        }
Пример #6
0
        private void buttonMasuk_Click(object sender, EventArgs e)
        {
            Form3Masuk frm3 = new Form3Masuk();

            frm3.ShowDialog();
        }