private void btnScan_Click(object sender, EventArgs e) { string releaseFolder = cbbxReleaseFolder.Text.Trim(); ulxiLastXML = SerializationHelper.LoadXml( typeof(UpdateListXmlInfo), Path.Combine(releaseFolder, "updatelist.xml") ) as UpdateListXmlInfo; BindAllFilesList(releaseFolder, releaseFolder); MessageBox.Show("Load Completed!"); }
private void btnScan_Click(object sender, EventArgs e) { string releaseFolder = cbbxReleaseFolder.Text.Trim(); ulxiLastXML = SerializationHelper.LoadXml( typeof(UpdateListXmlInfo), Path.Combine(releaseFolder, "updatelist.xml") ) as UpdateListXmlInfo; BindAllFilesList(releaseFolder, releaseFolder); MessageBox.Show("Load Completed!"); }
private static void CreateXML(List <SWMFileInfo> updateFileList, string xmlPath) { UpdateListXmlInfo ulxi = new UpdateListXmlInfo(); ulxi.Description = "SuperWebmaster AutoUpdate"; ulxi.Updater = new UpdaterInfo(); ulxi.Updater.Url = "http://zzzs.comsenz.com/data/update/0.2"; ulxi.Updater.LastUpdateTime = DateTime.Now.ToString("yyyy-MM-dd"); ulxi.Application = new ApplicationInfo(); ulxi.Application.ApplicationId = "ProductManager"; ulxi.Application.EntryPoint = "SuperWebmaster.exe"; ulxi.Application.Location = "."; ulxi.Application.Version = updateFileList.Find( delegate(SWMFileInfo f) { return(f.Name == "SuperWebmaster.exe"); } ).Ver; ulxi.Files = updateFileList; ulxi.ChangeLog = ""; Natsuhime.Common.SerializationHelper.SaveXml(ulxi, Path.Combine(xmlPath, "updatelist.xml")); }
private static void CreateXML(List<SWMFileInfo> updateFileList, string xmlPath) { UpdateListXmlInfo ulxi = new UpdateListXmlInfo(); ulxi.Description = "SuperWebmaster AutoUpdate"; ulxi.Updater = new UpdaterInfo(); ulxi.Updater.Url = "http://zzzs.comsenz.com/data/update/0.2"; ulxi.Updater.LastUpdateTime = DateTime.Now.ToString("yyyy-MM-dd"); ulxi.Application = new ApplicationInfo(); ulxi.Application.ApplicationId = "ProductManager"; ulxi.Application.EntryPoint = "SuperWebmaster.exe"; ulxi.Application.Location = "."; ulxi.Application.Version = updateFileList.Find( delegate(SWMFileInfo f) { return f.Name == "SuperWebmaster.exe"; } ).Ver; ulxi.Files = updateFileList; ulxi.ChangeLog = ""; Natsuhime.Common.SerializationHelper.SaveXml(ulxi, Path.Combine(xmlPath, "updatelist.xml")); }