Ejemplo n.º 1
0
        private void DockSelector_DockSelect(object sender, Controls.DockEventArgs e)
        {
            int id = Convert.ToInt32(e.ID);

            // display available slips in grid view
            gridvSlips.DataSource = MarinaManager.getAvailableSlipByDock(id);
            gridvSlips.DataBind();
        }
        protected void uxDocks_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (DockSelect != null)
            {
                var ID = Convert.ToInt32(uxDocks.SelectedValue);

                Dock dk = MarinaManager.Find(ID);
                Dock = dk;

                var arg = new DockEventArgs
                {
                    ID                = dk.ID.ToString(),
                    Name              = dk.Name,
                    WaterService      = dk.WaterService,
                    ElectricalService = dk.ElectricalService,
                };

                DockSelect.Invoke(this, arg);
            }
        }