private void Browse_Click(object sender, RoutedEventArgs e) { string path = FileBrowser.GetPath(); if (String.IsNullOrEmpty(path)) { MessageBox.Show("Please Select Path"); return; } txtFolderPath.Text = path; if (path.IndexOf("build") >= 0) { path = path.Split(new[] { "build" }, StringSplitOptions.RemoveEmptyEntries)[0]; path = path + @"build\Windows8.1"; } else if (path.IndexOf("Windows8.1") >= 0) { path = path.Split(new[] { "Windows8.1" }, StringSplitOptions.RemoveEmptyEntries)[0]; path = path + @"Windows8.1"; } else { MessageBox.Show("Path does not contain build folder"); return; } if (!File.Exists(path + @"\Appzillon.sln")) { MessageBox.Show("Folder path does not conatin project files"); return; } // new Thread(() => EncodingBom.Convert(path)).Start(); Console.WriteLine(path); manifest = new WinManifestViewModel(path); this.DataContext = manifest.phoneM; }
private void Browse_Click(object sender, RoutedEventArgs e) { string path = WinManifestViewModel.GetPath(txtFolderPath); if (path == null) { return; } manifest = new WinManifestViewModel(path); ManifestGrid.Visibility = Visibility.Visible; this.DataContext = manifest.phoneM; savebtn.IsEnabled = true; }