wpf_player.NodesGetter.Install C# (CSharp) Method

Install() public method

Method called during installation. This method downloads the nodes file.
public Install ( IDictionary stateSaver ) : void
stateSaver IDictionary
return void
        public override void Install(IDictionary stateSaver)
        {
            base.Install(stateSaver);
            WebClient webClient = new WebClient();
            try
            {
                webClient.DownloadFile("http://localhost:8000/nodes.xml", Context.Parameters["targetdir"] + "\\Resource\\nodes.xml");
            }
            catch (Exception e)
            {
            }
        }