├── .gitattributes
├── .gitignore
├── ProcessMonitor.App
├── App.config
├── App.xaml
├── App.xaml.cs
├── Command
│ └── RelayCommand.cs
├── Images
│ ├── Icon.ico
│ ├── add.png
│ ├── clear.png
│ ├── connect.png
│ ├── disconnect.png
│ ├── exit.png
│ ├── remove.png
│ ├── reset.png
│ ├── start.png
│ ├── stop.png
│ └── update.png
├── Presenters
│ ├── AddToWatchPresenter.cs
│ ├── IPresenter.cs
│ └── MainPresenter.cs
├── ProcessMonitor.App.csproj
├── Properties
│ ├── AssemblyInfo.cs
│ └── DataSources
│ │ └── ProcessMonitor.WatchProcess.datasource
├── Service References
│ └── MonitorService
│ │ ├── Arrays.xsd
│ │ ├── Message1.xsd
│ │ ├── ProcessMonitor1.xsd
│ │ ├── Reference.cs
│ │ ├── Reference.svcmap
│ │ ├── configuration.svcinfo
│ │ ├── configuration91.svcinfo
│ │ ├── service1.wsdl
│ │ ├── service2.xsd
│ │ └── service21.xsd
├── ViewModels
│ ├── ViewModelBase.cs
│ └── WatchProcessViewModel.cs
└── Views
│ ├── AboutView.xaml
│ ├── AboutView.xaml.cs
│ ├── AddToWatchView.xaml
│ ├── AddToWatchView.xaml.cs
│ ├── ConnectView.xaml
│ ├── ConnectView.xaml.cs
│ ├── IAddToWatchView.cs
│ ├── IConnectView.cs
│ ├── IMainView.cs
│ ├── IView.cs
│ ├── MainView.xaml
│ └── MainView.xaml.cs
├── ProcessMonitor.ConsoleApp
├── App.config
├── ProcessMonitor.ConsoleApp.csproj
├── Program.cs
└── Properties
│ └── AssemblyInfo.cs
├── ProcessMonitor.Installer
├── Features.wxs
├── Files.wxs
├── License.rtf
├── ProcessMonitor.Installer.wixproj
├── Product.wxs
├── Shortcuts.wxs
└── Variables.wxi
├── ProcessMonitor.Service
├── !install.bat
├── !uninstall.bat
├── App.config
├── MonitorService.cs
├── ProcessMonitor.Service.csproj
├── Program.cs
├── ProjectInstaller.cs
└── Properties
│ └── AssemblyInfo.cs
├── ProcessMonitor.sln
├── ProcessMonitor
├── App.config
├── IMonitor.cs
├── Monitor.cs
├── ProcessMonitor.csproj
├── Properties
│ └── AssemblyInfo.cs
└── WatchProcess.cs
└── README.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Bb]in/
2 | [Oo]bj/
3 | [Dd]ebug/
4 | [Rr]elease/
5 | TestResults
6 | packages
7 |
8 | *.com
9 | *.dll
10 | *.exe
11 | *.pdb
12 | *.obj
13 |
14 | *.zip
15 | *.log
16 |
17 | *.mdf
18 | *.ldf
19 | *.suo
20 | *.vssscc
21 | *.vspscc
22 | *.psess
23 | *.vsp
24 | *.user
25 | *.nupkg
26 | *.nuspec
27 | *.diff
28 | *.design
29 | *.pfx
30 |
31 | Thumbs.db
--------------------------------------------------------------------------------
/ProcessMonitor.App/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/ProcessMonitor.App/App.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProcessMonitor.App/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 | using ProcessMonitor.App.Presenters;
9 | using ProcessMonitor.App.Views;
10 |
11 | namespace ProcessMonitor.App
12 | {
13 |
14 | public partial class App : Application
15 | {
16 |
17 | protected override void OnStartup(StartupEventArgs e)
18 | {
19 | Dispatcher.UnhandledException += (o, args) =>
20 | #if DEBUG
21 | MessageBox.Show(args.Exception.ToString());
22 | #else
23 | MessageBox.Show(args.Exception.Message);
24 | #endif
25 |
26 | MainView mainView = new MainView();
27 | MainPresenter presenter = new MainPresenter(mainView);
28 | //mainView.Presenter = presenter;
29 | mainView.Show();
30 | //base.OnStartup(e);
31 | }
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/ProcessMonitor.App/Command/RelayCommand.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 | using System.Windows.Input;
4 |
5 | namespace ProcessMonitor.App.Command
6 | {
7 |
8 | public class RelayCommand : ICommand
9 | {
10 |
11 | private readonly Action