mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Added a window to edit AaruFormat files basic metadata.
This commit is contained in:
@@ -118,6 +118,7 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
OpenIbgLogCommand = new AsyncRelayCommand(OpenIbgLogAsync);
|
||||
ConnectToRemoteCommand = new AsyncRelayCommand(ConnectToRemoteAsync);
|
||||
OpenDeviceCommand = new RelayCommand(OpenDevice);
|
||||
ImageMetadataCommand = new AsyncRelayCommand(ImageMetadataAsync);
|
||||
|
||||
_genericHddIcon =
|
||||
new Bitmap(AssetLoader.Open(new Uri("avares://Aaru.Gui/Assets/Icons/oxygen/32x32/drive-harddisk.png")));
|
||||
@@ -172,6 +173,7 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
public ICommand OpenIbgLogCommand { get; }
|
||||
public ICommand ConnectToRemoteCommand { get; }
|
||||
public ICommand OpenDeviceCommand { get; }
|
||||
public ICommand ImageMetadataCommand { get; }
|
||||
|
||||
public bool NativeMenuSupported
|
||||
{
|
||||
@@ -229,6 +231,14 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
}
|
||||
}
|
||||
|
||||
Task ImageMetadataAsync()
|
||||
{
|
||||
var dialog = new ImageMetadata();
|
||||
dialog.DataContext = new ImageMetadataViewModel(dialog);
|
||||
|
||||
return dialog.ShowDialog(_view);
|
||||
}
|
||||
|
||||
void OpenDevice()
|
||||
{
|
||||
var deviceListWindow = new DeviceList();
|
||||
|
||||
Reference in New Issue
Block a user