private void Update(object sender, RoutedEventArgs e) { string appName = System.Windows.Forms.Application.ExecutablePath; UpdateClass.Update updateObject = new UpdateClass.Update(appName, currentConfigFile, currentRemoteConfig, UrlView.url); if (updateObject.update()) { this.ShutDown(); } }
private void Create_Click(object sender, RoutedEventArgs e) { listView.SelectedItem = ((System.Windows.Controls.Button)sender).DataContext; string path = configList[listView.SelectedIndex].Path; string configName = configList[listView.SelectedIndex].ConfigName; if (listView.Items.Count - 2 == listView.SelectedIndex) { UpdateClass.Update updateObject = new UpdateClass.Update(currentConfigFilePath + MainWindow.appName, currentConfigFile, currentRemoteConfig, UrlView.url); if (updateObject.update()) { parent.ShutDown(); } } else { string p = FileManager.SelectPath(); FileManager.CopyToFloder(path, p); ConfigManager.XMLConfigPathChange(p + "/" + configName); } }