Пример #1
0
        private void cmsOtoparkiGuncelle_Click(object sender, EventArgs e)
        {
            ara = "otoparklar";
            DataGridViewRow seciliOtopark = Main_Grid.CurrentRow;
            int             parkNo        = Convert.ToInt16(seciliOtopark.Cells["Park NO"].Value);
            otoparkGuncelle s             = new otoparkGuncelle(parkNo);

            this.Visible = false;
            s.ShowDialog();
            this.Visible                  = true;
            Main_Grid.DataSource          = db.otoparkIslem.otoparklariGetir();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
Пример #2
0
        private void btnOtoparkGuncelle_Click(object sender, EventArgs e)
        {
            lblRapor.Visible        = false;
            lbl_ara.Visible         = true;
            cbRaporlar.Visible      = false;
            gbIslemYap.Visible      = false;
            label1.Enabled          = false;
            dtpGiris.Enabled        = false;
            dtpCikis.Enabled        = false;
            lblTarihAraligi.Enabled = false;
            Main_Grid.Visible       = true;
            tb_ara.Visible          = true;
            gbAra.Enabled           = true;
            otoparkGuncelle s = new otoparkGuncelle(Convert.ToInt16(parkNo));

            this.Visible = false;
            s.ShowDialog();
            this.Visible         = true;
            Main_Grid.DataSource = db.otoparkIslem.otoparkGetir(Convert.ToInt16(parkNo));
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }