コード例 #1
0
        protected void uxDocks_SelectedIndexChanged(object sender, EventArgs e)
        {
            // event fires
            if (DockSelect != null)
            {
                // get id from list
                var dockID = Convert.ToInt32(uxDocks.SelectedValue);

                // call manager
                var mgr = new MarinaManager();
                // get course object
                var dock = mgr.GetSingleDock(dockID);
                Dock = dock;

                // instantiate event args
                var arg = new DockEventArgs
                {
                    ID       = dock.ID,
                    eService = dock.ElectricalService,
                    wService = dock.WaterService
                };

                // pass args to event and invoke
                DockSelect.Invoke(this, arg);
            }
        }
コード例 #2
0
 private void DockSelector_DockSelect(object sender, Controls.DockEventArgs e)
 {
     // When the event is fired, the object data source Selects the data, which fires
     uxSlipSource.Select();
     DataBind();
 }