public AnalyzingWindow(Options options)
		{
			this.InitializeComponent();
			this.analyzingViewModel_0 = new AnalyzingViewModel();
			this.analysis_0 = new Analysis(options.Directory);
			this.analysis_0.Options = options;
			base.DataContext = this.analyzingViewModel_0;
			base.Loaded += new RoutedEventHandler(this.AnalyzingWindow_Loaded);
		}
		public AnalyzingWindow(Options options)
		{
			InitializeComponent();
			_analyzingViewModel = new AnalyzingViewModel();
			Analysis = new Analysis(options.Directory);
			Analysis.Options = options;

			base.DataContext = _analyzingViewModel;
			base.Loaded += new RoutedEventHandler(AnalyzingWindow_Loaded);
		}
Ejemplo n.º 3
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);
			}
		}
Ejemplo n.º 4
0
		private void method9(object sender, ExecuteRoutedEventArgs e)
		{
			Options options = new Options();

			if (new OptionsEdit(options).ShowDialog() == true)
			{
				OpenAnalyzingWindow(options);
			}
		}
Ejemplo n.º 5
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);
			}
		}
Ejemplo n.º 6
0
		private void method_9(object sender, ExecuteRoutedEventArgs e)
		{
			Options options = new Options();
			if (new OptionsEdit(options).ShowDialog() == true)
			{
				this.method_14(options);
			}
		}
Ejemplo n.º 7
0
		public OptionsEdit(Options options)
		{
			InitializeComponent();
			_options = options;
			base.DataContext = _options;
		}
Ejemplo n.º 8
0
		public OptionsEdit(Options options)
		{
			this.InitializeComponent();
			this.options_0 = options;
			base.DataContext = this.options_0;
		}