Exemplo n.º 1
0
		private void OpenAnalyzingWindow(Options options)
		{
			AnalyzingWindow analyzingWindow = new AnalyzingWindow(options);
			analyzingWindow.ShowDialog();

			if (analyzingWindow.Analysis.method5())
			{
				if (_wheelView != null)
				{
					_wheelView.Close();
				}

				_mainViewModel = new MainViewModel();
				_mainViewModel.Options = options;
				_mainViewModel.RootDirectories = analyzingWindow.Analysis.RootDirectories;
				_mainViewModel.Files = analyzingWindow.Analysis.Files;
				_mainViewModel.SelectedFile = _mainViewModel.Files.FirstOrDefault<CodeFile>();
				base.DataContext = _mainViewModel;
			}
			else if (analyzingWindow.Analysis.CaughtException != null)
			{
				string str = App.LogException(analyzingWindow.Analysis.CaughtException);
				System.Windows.MessageBox.Show("Atomiq has experienced a problem analyzing the directory. We'd really appreciate it if you could email \"" + str + "\" to [email protected]", "Analysis Exception", MessageBoxButton.OK, MessageBoxImage.Hand);
			}
		}
Exemplo n.º 2
0
		private void method_14(Options options_0)
		{
			AnalyzingWindow analyzingWindow = new AnalyzingWindow(options_0);
			analyzingWindow.ShowDialog();
			if (analyzingWindow.Analysis.method_5())
			{
				if (this.wheelView_0 != null)
				{
					this.wheelView_0.Close();
				}
				this.mainViewModel_0 = new MainViewModel();
				this.mainViewModel_0.Options = options_0;
				this.mainViewModel_0.RootDirectories = analyzingWindow.Analysis.RootDirectories;
				this.mainViewModel_0.Files = analyzingWindow.Analysis.Files;
				this.mainViewModel_0.SelectedFile = this.mainViewModel_0.Files.FirstOrDefault<CodeFile>();
				base.DataContext = this.mainViewModel_0;
			}
			else if (analyzingWindow.Analysis.CaughtException != null)
			{
				string str = App.smethod_0(analyzingWindow.Analysis.CaughtException);
				System.Windows.MessageBox.Show("Atomiq has experienced a problem analyzing the directory. We'd really appreciate it if you could email \"" + str + "\" to [email protected]", "Analysis Exception", MessageBoxButton.OK, MessageBoxImage.Hand);
			}
		}