-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
478e1bd
commit 082fa84
Showing
10 changed files
with
128 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
MessageCommunicator.TestGui/ViewServices/IAboutDialogService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MessageCommunicator.TestGui.ViewServices | ||
{ | ||
public interface IAboutDialogService : IViewService | ||
{ | ||
Task ShowAboutDialogAsync(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
MessageCommunicator.TestGui/ViewServices/_AboutDialog/AboutDialogControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:MessageCommunicator.TestGui.ViewServices;assembly=MessageCommunicator.TestGui" | ||
xmlns:localRoot="clr-namespace:MessageCommunicator.TestGui;assembly=MessageCommunicator.TestGui" | ||
mc:Ignorable="d" | ||
Width="610" Height="400" | ||
x:Class="MessageCommunicator.TestGui.ViewServices.AboutDialogControl"> | ||
|
||
<Grid> | ||
<TextBox>About ;)</TextBox> | ||
</Grid> | ||
</UserControl> |
20 changes: 20 additions & 0 deletions
20
MessageCommunicator.TestGui/ViewServices/_AboutDialog/AboutDialogControl.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Reactive.Disposables; | ||
using System.Runtime.InteropServices.ComTypes; | ||
using System.Threading.Tasks; | ||
using Avalonia; | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
using Avalonia.Threading; | ||
|
||
namespace MessageCommunicator.TestGui.ViewServices | ||
{ | ||
public class AboutDialogControl : OwnUserControlDialog<OwnViewModelBase> | ||
{ | ||
public AboutDialogControl() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
MessageCommunicator.TestGui/ViewServices/_AboutDialog/AboutDialogService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MessageCommunicator.TestGui.ViewServices | ||
{ | ||
public class AboutDialogService : ViewServiceBase, IAboutDialogService | ||
{ | ||
private DialogHostControl _host; | ||
|
||
public AboutDialogService(DialogHostControl host) | ||
{ | ||
_host = host; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public Task ShowAboutDialogAsync() | ||
{ | ||
var aboutDialogControl = new AboutDialogControl(); | ||
return _host.ShowDialogAsync(aboutDialogControl, "About"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters