At.Okr.OKrBook.Auter.Main.OnResetManifest C# (CSharp) Method

OnResetManifest() private method

private OnResetManifest ( ) : void
return void
        private void OnResetManifest()
        {
            String sourceRoot = ConfigurationManager.AppSettings["source_root"];
            String manifestFile = sourceRoot + "Properties\\WMAppManifest.xml";

            XmlDocument doc = new XmlDocument();
            doc.Load(manifestFile);

            XmlNode nodeApp = doc.SelectSingleNode("//App");
            this.productID = Guid.NewGuid().ToString("B");

            nodeApp.Attributes["ProductID"].Value = this.productID;
            nodeApp.Attributes["Title"].Value = this.txt_AppName.Text;

            XmlNode nodeTitle = doc.SelectSingleNode("//Title");
            nodeTitle.InnerText = this.txt_AppName.Text;

            doc.Save(manifestFile);
        }