public RestaurantsForm()
        {
            InitializeComponent();

            db = new DishContext();
            db.Restaurants.Load();

            dataGridView1.DataSource           = db.Restaurants.Local.ToBindingList();
            dataGridView1.RowHeaderMouseClick += new DataGridViewCellMouseEventHandler(OnRowHeaderMouseClick);
            dataGridView1.CellClick           += new DataGridViewCellEventHandler(OnCellClick);
        }
        public DishForm(int r_id)
        {
            res_id = r_id;
            InitializeComponent();

            db = new DishContext();
            db.Dishes.Load();

            Restaurant restaurant = db.Restaurants.FirstOrDefault(r => r.Id == res_id);

            header.Text = restaurant.Name + " Menu";

            dishes = db.Dishes.Where(d => d.Restaurant_Id == res_id);

            dataGridView1.AutoGenerateColumns     = true;
            dataGridView1.RowHeaderMouseClick    += new DataGridViewCellMouseEventHandler(OnRowHeaderMouseClick);
            dataGridView1.CellClick              += new DataGridViewCellEventHandler(OnCellClick);
            dataGridView1.ColumnHeaderMouseClick += new DataGridViewCellMouseEventHandler(dataGridView1_ColumnHeaderMouseClick);
        }