Exemplo n.º 1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.SaloonBLL.BLLSaloon_TKeys SaloonKey = new HPS.BLL.SaloonBLL.BLLSaloon_TKeys();
            if (this.SaloonGridView.SelectedRows.Count > 0)
            {
                SaloonKey.SaloonID_int = (Int32)this.SaloonGridView.CurrentRow.Cells["colSaloonID_int"].Value;
            }
            SaloonEntityForm Saloon = new SaloonEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.SaloonGridView.DataSource, SaloonKey);

            Saloon.ShowDialog();
        }
Exemplo n.º 2
0
        private void NewButton_Click(object sender, EventArgs e)
        {
            SaloonEntityForm Saloon = new SaloonEntityForm((DataTable)this.SaloonGridView.DataSource);

            Saloon.ShowDialog();
        }