示例#1
0
        /// <summary>
        /// Loads the ingredients and displays them.
        /// </summary>
        private void LoadIngredients()
        {
            SvcKitchen.SvcKitchenSoapClient svc    = new SvcKitchen.SvcKitchenSoapClient();
            SvcKitchen.ServiceResult        result = new SvcKitchen.ServiceResult();

            gvIngredients.DataSource = svc.GetIngredients(out result);
            gvIngredients.DataBind();
            lblInfo.DisplayResult(result);
        }
示例#2
0
        /// <summary>
        /// Loads the meal lines and displays them.
        /// </summary>
        private void PopulateIngredients()
        {
            SvcKitchen.SvcKitchenSoapClient svc    = new SvcKitchen.SvcKitchenSoapClient();
            SvcKitchen.ServiceResult        result = new SvcKitchen.ServiceResult();

            cboIngredients.DataSource     = svc.GetIngredients(out result);
            cboIngredients.DataValueField = "ID";
            cboIngredients.DataTextField  = "Name";
            cboIngredients.DataBind();

            lblLineInfo.DisplayResult(result);
        }