Skip to content

Commit c5dc0d5

Browse files
committed
Initial commit for ProcessWatcher code.
1 parent 3b7024f commit c5dc0d5

14 files changed

+1145
-0
lines changed

Diff for: ILogger.cs

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace ProcessWatcher
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
8+
/// <summary>
9+
/// The definition for a logging interface.
10+
/// </summary>
11+
public interface ILogger
12+
{
13+
/// <summary>
14+
/// Logs a message.
15+
/// </summary>
16+
/// <param name="message">The message to log.</param>
17+
void Log(string message);
18+
}
19+
}

Diff for: ProcessWatcher.csproj

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}</ProjectGuid>
9+
<OutputType>WinExe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>ProcessWatcher</RootNamespace>
12+
<AssemblyName>ProcessWatcher</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
<FileAlignment>512</FileAlignment>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18+
<PlatformTarget>x86</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28+
<PlatformTarget>x86</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Deployment" />
44+
<Reference Include="System.Drawing" />
45+
<Reference Include="System.Windows.Forms" />
46+
<Reference Include="System.Xml" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<Compile Include="ProcessWatcherApp.cs">
50+
<SubType>Form</SubType>
51+
</Compile>
52+
<Compile Include="ProcessWatcherApp.Designer.cs">
53+
<DependentUpon>ProcessWatcherApp.cs</DependentUpon>
54+
</Compile>
55+
<Compile Include="ILogger.cs" />
56+
<Compile Include="ProcessWatcherCore.cs" />
57+
<Compile Include="Program.cs" />
58+
<Compile Include="Properties\AssemblyInfo.cs" />
59+
<EmbeddedResource Include="ProcessWatcherApp.resx">
60+
<DependentUpon>ProcessWatcherApp.cs</DependentUpon>
61+
</EmbeddedResource>
62+
<EmbeddedResource Include="Properties\Resources.resx">
63+
<Generator>ResXFileCodeGenerator</Generator>
64+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
65+
<SubType>Designer</SubType>
66+
</EmbeddedResource>
67+
<Compile Include="Properties\Resources.Designer.cs">
68+
<AutoGen>True</AutoGen>
69+
<DependentUpon>Resources.resx</DependentUpon>
70+
</Compile>
71+
<None Include="app.config" />
72+
<None Include="Properties\Settings.settings">
73+
<Generator>SettingsSingleFileGenerator</Generator>
74+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
75+
</None>
76+
<Compile Include="Properties\Settings.Designer.cs">
77+
<AutoGen>True</AutoGen>
78+
<DependentUpon>Settings.settings</DependentUpon>
79+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
80+
</Compile>
81+
</ItemGroup>
82+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
83+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
84+
Other similar extension points exist, see Microsoft.Common.targets.
85+
<Target Name="BeforeBuild">
86+
</Target>
87+
<Target Name="AfterBuild">
88+
</Target>
89+
-->
90+
</Project>

Diff for: ProcessWatcher.sln

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual C# Express 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProcessWatcher", "ProcessWatcher.csproj", "{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|x86 = Debug|x86
9+
Release|x86 = Release|x86
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}.Debug|x86.ActiveCfg = Debug|x86
13+
{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}.Debug|x86.Build.0 = Debug|x86
14+
{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}.Release|x86.ActiveCfg = Release|x86
15+
{9DC570E6-6C44-4537-A6E8-621ABE2CAE12}.Release|x86.Build.0 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

Diff for: ProcessWatcherApp.Designer.cs

+94
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)