Compare commits

...

3 Commits

Author SHA1 Message Date
5446ec3739 Add Views namespace 2021-01-23 11:39:21 +01:00
2843fe93a7 Fix event propagation
Add Modal to avoid upward event propagation
2021-01-23 11:37:28 +01:00
7b7e83a7d2 Add Views namespace
Move viewst to this namespace
2021-01-23 11:37:27 +01:00
7 changed files with 942 additions and 936 deletions

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class DataDisplay : Toplevel
{
@@ -23,6 +23,8 @@ namespace WaveshareUARTFingerprintSensor.Sample
private void Init()
{
Modal = true;
ColorScheme = Colors.TopLevel;
// Creates the top-level window to show

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class EntryDialog : Dialog
{

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class FingerprintDialog : Dialog
{

View File

@@ -7,7 +7,7 @@ using System.Threading;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class SettingsDisplay : Toplevel
{
@@ -21,6 +21,8 @@ namespace WaveshareUARTFingerprintSensor.Sample
private void Init()
{
Modal = true;
ColorScheme = Colors.Error;
// Creates the top-level window to show

View File

@@ -7,7 +7,7 @@ using System.Threading;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class SleepDisplay : Toplevel
{
@@ -29,6 +29,8 @@ namespace WaveshareUARTFingerprintSensor.Sample
private void Init()
{
Modal = true;
ColorScheme = Colors.Error;
// Creates the top-level window to show

View File

@@ -7,7 +7,7 @@ using System.Text;
using System.Threading.Tasks;
using Terminal.Gui;
namespace WaveshareUARTFingerprintSensor.Sample
namespace WaveshareUARTFingerprintSensor.Sample.Views
{
public class TUIManager : Toplevel
{

View File

@@ -99,14 +99,14 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="DataDisplay.cs" />
<Compile Include="EntryDialog.cs" />
<Compile Include="FingerprintDialog.cs" />
<Compile Include="Views\DataDisplay.cs" />
<Compile Include="Views\EntryDialog.cs" />
<Compile Include="Views\FingerprintDialog.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SettingsDisplay.cs" />
<Compile Include="SleepDisplay.cs" />
<Compile Include="TUIManager.cs" />
<Compile Include="Views\SettingsDisplay.cs" />
<Compile Include="Views\SleepDisplay.cs" />
<Compile Include="Views\TUIManager.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />