Example #1
0
        void Update()
        {
            db.Cache.Clear();

            foreach (var r in db.Repositories)
            {
                var prog = new cmd.contracts.Progress.AnimatedBar();

                var wc = new WebClient();
                wc.DownloadProgressChanged += (sender, e) =>
                {
                    prog.Step();
                };

                var xml = wc.DownloadString(r);
                var rep = (Repository)XamlServices.Parse(xml);
                db.Cache.Add(rep);

                prog.PrintMessage("Updating Cache");
            }
        }
Example #2
0
 void Uninstall(Command c)
 {
     var prog = new cmd.contracts.Progress.AnimatedBar();
     prog.PrintMessage("Removing");
 }