test project additions
This commit is contained in:
parent
f0f69a3ee1
commit
0f1b8ee092
BIN
Common/gear.png
Normal file
BIN
Common/gear.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
@ -17,7 +17,8 @@ Global
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|Any CPU.ActiveCfg = Debug|x64
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|Any CPU.Build.0 = Debug|x86
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|x64.ActiveCfg = Debug|x86
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|x64.Build.0 = Debug|x86
|
||||
{D387573C-D122-461C-B525-1545DBDB4FBA}.Debug|x86.ActiveCfg = Debug|x86
|
||||
@ -38,7 +39,8 @@ Global
|
||||
{1EAD8E9A-A123-4C37-B31E-AEE1354DF003}.Release|x64.Build.0 = Release|x64
|
||||
{1EAD8E9A-A123-4C37-B31E-AEE1354DF003}.Release|x86.ActiveCfg = Release|x86
|
||||
{1EAD8E9A-A123-4C37-B31E-AEE1354DF003}.Release|x86.Build.0 = Release|x86
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|x64.Build.0 = Debug|x64
|
||||
{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}.Debug|x86.ActiveCfg = Debug|x86
|
||||
|
@ -54,6 +54,22 @@
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
@ -10,7 +10,7 @@ using System.Windows;
|
||||
|
||||
namespace PdfScribe
|
||||
{
|
||||
class Program
|
||||
public class Program
|
||||
{
|
||||
|
||||
static Application activityWindow;
|
||||
@ -20,17 +20,8 @@ namespace PdfScribe
|
||||
{
|
||||
// Install the global exception handler
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Application_UnhandledException);
|
||||
|
||||
var activityWindowThread = new Thread(new ThreadStart(() =>
|
||||
{
|
||||
activityWindow = new Application();
|
||||
activityWindow.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
activityWindow.Run(new ActivityNotification());
|
||||
}
|
||||
));
|
||||
activityWindowThread.SetApartmentState(ApartmentState.STA);
|
||||
activityWindowThread.Start();
|
||||
|
||||
ShowActivitityNotificationWindow();
|
||||
Thread.Sleep(3000);
|
||||
|
||||
String standardInputFilename = Path.GetTempFileName();
|
||||
@ -75,7 +66,7 @@ namespace PdfScribe
|
||||
finally
|
||||
{
|
||||
File.Delete(standardInputFilename);
|
||||
activityWindow.Dispatcher.InvokeShutdown();
|
||||
CloseActivityNotificationWindow();
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,5 +79,24 @@ namespace PdfScribe
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
public static void ShowActivitityNotificationWindow()
|
||||
{
|
||||
var activityWindowThread = new Thread(new ThreadStart(() =>
|
||||
{
|
||||
activityWindow = new Application();
|
||||
activityWindow.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
activityWindow.Run(new ActivityNotification());
|
||||
}
|
||||
));
|
||||
activityWindowThread.SetApartmentState(ApartmentState.STA);
|
||||
activityWindowThread.Start();
|
||||
}
|
||||
|
||||
public static void CloseActivityNotificationWindow()
|
||||
{
|
||||
activityWindow.Dispatcher.InvokeShutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -134,6 +134,10 @@
|
||||
<Project>{1EAD8E9A-A123-4C37-B31E-AEE1354DF003}</Project>
|
||||
<Name>PdfScribeCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\PdfScribe\PdfScribe.csproj">
|
||||
<Project>{09BB3AA3-96D3-4BA1-BCB3-4E17067F42B2}</Project>
|
||||
<Name>PdfScribe</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
@ -17,6 +18,7 @@ namespace PdfScribeUnitTests
|
||||
{ }
|
||||
#endregion
|
||||
|
||||
#region PdfScribeCore Tests
|
||||
//[Test]
|
||||
public void Test_DeletePdfScribePort()
|
||||
{
|
||||
@ -31,7 +33,7 @@ namespace PdfScribeUnitTests
|
||||
scribeInstaller.RemovePDFScribePrinterDriver();
|
||||
}
|
||||
|
||||
[Test]
|
||||
//[Test]
|
||||
public void Test_InstallPdfScribePrinter()
|
||||
{
|
||||
var scribeInstaller = new PdfScribeInstaller();
|
||||
@ -51,5 +53,15 @@ namespace PdfScribeUnitTests
|
||||
var scribeInstaller = new PdfScribeInstaller();
|
||||
scribeInstaller.RemovePdfScribePortMonitor();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[Test]
|
||||
public void Test_ShowActivityWindows()
|
||||
{
|
||||
PdfScribe.Program.ShowActivitityNotificationWindow();
|
||||
Thread.Sleep(3000);
|
||||
PdfScribe.Program.CloseActivityNotificationWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user