Exemplo n.º 1
0
        /// <summary>
        /// Load details recipe data for the given url
        /// </summary>
        public void LoadData(string url)
        {
            string stringId = url.Substring(url.LastIndexOf("/"), url.Length - url.LastIndexOf("/"));
            ProgressVisibility = Visibility.Visible;

            // Sample data; replace with real data
            FoxProvider provider = new FoxProvider();
            provider.ObtainRecipeById(stringId);

            provider.ProcessEnded += (s, e) =>
            {
                System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => UpdateUI(e));
            };
        }