private void BindData()
 {
     Pilot allpilots = new Pilot();
     allpilots.LoadAll();
     uiRadGridAllPilots.DataSource = allpilots.DefaultView;
     uiRadGridAllPilots.DataBind();
 }
 private void LoadDDLs()
 {
     Pilot Allpilots = new Pilot();
     Allpilots.LoadAll();
     uiDropDownListPilots.DataSource = Allpilots.DefaultView;
     uiDropDownListPilots.DataTextField = "ShortName";
     uiDropDownListPilots.DataValueField = "PilotID";
     uiDropDownListPilots.DataBind();
     uiDropDownListPilots.Items.Insert(0, new ListItem("Select Pilot", "0"));
 }
Esempio n. 3
0
        private void LoadDDLs()
        {
            Pilot Allpilots = new Pilot();
            Allpilots.LoadAll();
            uiDropDownListPilots.DataSource = Allpilots.DefaultView;
            uiDropDownListPilots.DataTextField = "ShortName";
            uiDropDownListPilots.DataValueField = "PilotID";
            uiDropDownListPilots.DataBind();
            uiDropDownListPilots.Items.Insert(0, new ListItem("Select Pilot", ""));

            AirPlane AllPlanes = new AirPlane();
            AllPlanes.LoadAll();
            uiDropDownListAirplane.DataSource = AllPlanes.DefaultView;
            uiDropDownListAirplane.DataTextField = "Name";
            uiDropDownListAirplane.DataValueField = "AirPlaneID";
            uiDropDownListAirplane.DataBind();
            uiDropDownListAirplane.Items.Insert(0, new ListItem("All", "0"));

            AirPort AllAirports = new AirPort();
            AllAirports.LoadAll();
            uiDropDownListFrom.DataSource = AllAirports.DefaultView;
            uiDropDownListFrom.DataTextField = "IATACode";
            uiDropDownListFrom.DataValueField = "AirPortID";
            uiDropDownListFrom.DataBind();
            uiDropDownListFrom.Items.Insert(0, new ListItem("Select Airport", "0"));

            uiDropDownListTo.DataSource = AllAirports.DefaultView;
            uiDropDownListTo.DataTextField = "IATACode";
            uiDropDownListTo.DataValueField = "AirPortID";
            uiDropDownListTo.DataBind();
            uiDropDownListTo.Items.Insert(0, new ListItem("Select Airport", "0"));
        }