Exemple #1
0
        private void şubeyiGüncelleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataGridViewRow seciliSube = Main_Grid.CurrentRow;
            int             subeNo     = Convert.ToInt16(seciliSube.Cells["Şube No"].Value);
            subeGuncelle    s          = new subeGuncelle(subeNo);

            this.Visible = false;
            s.ShowDialog();
            this.Visible                  = true;
            Main_Grid.DataSource          = db.subeIslem.subeleriGetir();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
        private void btnSubeListele_Click(object sender, EventArgs e)
        {
            lblRapor.Visible   = false;
            lbl_ara.Visible    = true;
            cbRaporlar.Visible = false;
            subeGuncelle s = new subeGuncelle(Convert.ToInt16(subeNo));

            this.Visible = false;
            s.ShowDialog();
            this.Visible         = true;
            Main_Grid.DataSource = db.subeIslem.subeyiListele(Convert.ToInt16(subeNo));
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }