mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Device visualizer - Added support for rotation and scale
Profile editor - Fixed keyframe context menu actions
This commit is contained in:
1 parent
6504c621c6
commit
35944e064d
15 files changed
+185
-78
No files matched your search
@@ -96,18 +96,25 @@ namespace Artemis.UI.Shared.Services.Dialog
|
||||
new ConstructorArgument("exception", exception)
|
||||
};
|
||||
|
||||
await Execute.OnUIThreadAsync(async () =>
|
||||
try
|
||||
{
|
||||
try
|
||||
await Execute.OnUIThreadAsync(async () =>
|
||||
{
|
||||
DialogHost.CloseDialogCommand.Execute(new object(), null);
|
||||
await ShowDialog<ExceptionDialogViewModel>(arguments);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
});
|
||||
try
|
||||
{
|
||||
DialogHost.CloseDialogCommand.Execute(new object(), null);
|
||||
await ShowDialog<ExceptionDialogViewModel>(arguments);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<object> ShowDialog(string identifier, DialogViewModelBase viewModel)
|
||||
|
||||
@@ -5,6 +5,9 @@ namespace Artemis.UI.Shared.Services.Dialog
|
||||
{
|
||||
public abstract class DialogViewModelBase : ValidatingModelBase
|
||||
{
|
||||
private DialogViewModelHost _dialogViewModelHost;
|
||||
private DialogSession _session;
|
||||
|
||||
protected DialogViewModelBase(IModelValidator validator) : base(validator)
|
||||
{
|
||||
}
|
||||
@@ -13,8 +16,17 @@ namespace Artemis.UI.Shared.Services.Dialog
|
||||
{
|
||||
}
|
||||
|
||||
public DialogViewModelHost DialogViewModelHost { get; set; }
|
||||
public DialogSession Session { get; private set; }
|
||||
public DialogViewModelHost DialogViewModelHost
|
||||
{
|
||||
get => _dialogViewModelHost;
|
||||
set => SetAndNotify(ref _dialogViewModelHost, value);
|
||||
}
|
||||
|
||||
public DialogSession Session
|
||||
{
|
||||
get => _session;
|
||||
private set => SetAndNotify(ref _session, value);
|
||||
}
|
||||
|
||||
public void OnDialogOpened(object sender, DialogOpenedEventArgs e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user