private void btnDrRandevu_Click(object sender, EventArgs e)
        {
            panelStick2.Top    = btnDrRandevu.Top;
            panelStick2.Height = btnDrRandevu.Height;
            panel1.Controls.Clear();
            doktor = lg.id.ToString();
            DrRandevu d = new DrRandevu(doktor);

            panel1.Controls.Add(d);
            d.Dock = DockStyle.Fill;
        }
        private void btnGiris_Click(object sender, EventArgs e)
        {
            lg.durum         = "false";
            lg.StartPosition = FormStartPosition.Manual;
            lg.Left          = 200;
            lg.Top           = 50;
            lg.ShowDialog();
            if (bool.Parse(lg.durum) == true)
            {
                panel1.Visible     = true;
                lblAdSoyad.Visible = true; lblAdSoyad.Text = lg.adSoyad;
                lblYetki.Visible   = true; lblYetki.Text = lg.yetki;
                btnCikis.Visible   = true;
                btnGiris.Visible   = false;

                if (lg.yetki != "Doktor")
                {
                    solPanel.Visible = true;
                    panel1.Controls.Clear();
                    Randevular rnd = new Randevular();
                    panel1.Controls.Add(rnd);
                    rnd.Dock = DockStyle.Fill;

                    if (lg.yetki == "Yönetici")
                    {
                        btnDoktor.Visible   = true;
                        btnGorevli.Visible  = true;
                        btnAyar.Visible     = true;
                        btnizinOnay.Visible = true;
                        btnPoli.Visible     = true;
                    }
                }
                else
                {
                    drPanel.Visible = true;
                    panel1.Controls.Clear();
                    lblPoli.Visible = true;
                    lblPoli.Text    = lg.poliklinik;
                    doktor          = lg.id.ToString();
                    DrRandevu d = new DrRandevu(doktor);
                    panel1.Controls.Add(d);
                    d.Dock = DockStyle.Fill;
                }
            }
        }