private void ImportSeleniumScript(object sender, System.Windows.RoutedEventArgs e) { if (General.SetupBrowseFile(new System.Windows.Forms.OpenFileDialog() { DefaultExt = ".html", Filter = "Recorded Selenium Scripts (*.html)|*.html" }, false) is string fileName) { BusinessFlow BF = SeleniumToGinger.ConvertSeleniumScript(fileName); mBusFlowsFolder.AddRepositoryItem(BF); } }
private void ImportSeleniumScript(object sender, System.Windows.RoutedEventArgs e) { System.Windows.Forms.OpenFileDialog dlg = new System.Windows.Forms.OpenFileDialog(); dlg.DefaultExt = ".html"; dlg.Filter = "Recorded Selenium Scripts (*.html)|*.html"; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { BusinessFlow BF = SeleniumToGinger.ConvertSeleniumScript(dlg.FileName); mBusFlowsFolder.AddRepositoryItem(BF); } }
private void ImportSeleniumScript(object sender, System.Windows.RoutedEventArgs e) { System.Windows.Forms.OpenFileDialog dlg = new System.Windows.Forms.OpenFileDialog(); dlg.DefaultExt = ".html"; dlg.Filter = "Recorded Selenium Scripts (*.html)|*.html"; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { BusinessFlow BF = SeleniumToGinger.ConvertSeleniumScript(dlg.FileName); string BFFileName = LocalRepository.GetRepoItemFileName(BF, Path); BusinessFlowTreeItem BFTI = new BusinessFlowTreeItem(); BFTI.BusinessFlow = BF; mTreeView.Tree.AddChildItemAndSelect(this, BFTI); BF.SaveToFile(BFFileName); } }