Пример #1
0
        void res_LoadOK(object sender, EventArgs e)
        {
            Resource res = (Resource)sender;

            lock (this)
            {
                if (res.Type == ResourceType.Page)
                {
                    Page p = new Page(res);
                    if (this.Pages.Add(p))
                    {
                        if (res.Parent == null) this.RootPage = p;
                        foreach (Resource r in p.Resources)
                        {
                            this.NewResource(r);
                        }
                    }
                }
            }
            res.SaveToDisk();
        }
Пример #2
0
 public Resource(Uri resUri, Page parent)
 {
     this.Url = resUri;
     this.Content = null;
     this.Loaded = false;
     this.Parent = parent;
 }