Exemple #1
0
        private void simpleButton3_Click(object sender, EventArgs e) //Yönetici girişi tıklanma olayı
        {
            FormAna f1     = Application.OpenForms["FormAna"] as FormAna;
            Panel   panel1 = f1.Controls["panel1"] as Panel;

            panel1.Controls.Clear();

            FormYonetici formYonetici = new FormYonetici(banka);

            formYonetici.TopLevel = false;
            panel1.Controls.Add(formYonetici);
            formYonetici.Show();
            formYonetici.Dock = DockStyle.Fill;
        }
        private void BtnYonetici_Click(object sender, EventArgs e)
        {
            Form1 form1  = Application.OpenForms["Form1"] as Form1;
            Panel panel1 = form1.Controls["Panel1"] as Panel;

            panel1.Controls.Clear();

            FormYonetici formYonetici = new FormYonetici(banka);

            formYonetici.TopLevel = false;
            panel1.Controls.Add(formYonetici);
            formYonetici.Show();
            formYonetici.Dock = DockStyle.Fill;
        }