Пример #1
0
        public void outputHall(DataGridView dataGridHall)
        {
            dataGridHall.Rows.Clear();

            try
            {
                var res = _hallService.SelectHall();

                if (res.IsValid)
                {
                    foreach (var c in res.ResultObject)
                    {
                        dataGridHall.Rows.Add(c.HallId, c.Numbers_of_rows, c.Number_of_seats_in_a_row);
                    }
                }
                else
                {
                    MessageBox.Show(errorDataBase);
                }
            }
            catch (Exception exp)
            {
                MessageBox.Show(errorController);
            }
        }