Add launch args
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject>WaveshareUARTFingerprintSensor.Sample.Program</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="NStack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="NStack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>packages\NStack.Core.0.14.0\lib\netstandard2.0\NStack.dll</HintPath>
|
<HintPath>packages\NStack.Core.0.14.0\lib\netstandard2.0\NStack.dll</HintPath>
|
||||||
|
|||||||
24
Program.cs
24
Program.cs
@@ -15,6 +15,30 @@ namespace WaveshareUARTFingerprintSensor.Sample
|
|||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
if (args.Length > 0)
|
||||||
|
{
|
||||||
|
switch (args[0])
|
||||||
|
{
|
||||||
|
case "-c":
|
||||||
|
case "--config":
|
||||||
|
StartConfig();
|
||||||
|
|
||||||
|
Environment.Exit(0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
StartLoop();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void StartLoop()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void StartConfig()
|
||||||
{
|
{
|
||||||
Application.Run<TUIManager>();
|
Application.Run<TUIManager>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user