diff --git a/.idea/.idea.Aaru/.idea/contentModel.xml b/.idea/.idea.Aaru/.idea/contentModel.xml index 58d148504..aebc33b89 100644 --- a/.idea/.idea.Aaru/.idea/contentModel.xml +++ b/.idea/.idea.Aaru/.idea/contentModel.xml @@ -1,28 +1,27 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -71,13 +70,6 @@ - - - - - - - @@ -88,12 +80,18 @@ + + + + + + @@ -102,14 +100,6 @@ - - - - - - - - @@ -117,11 +107,19 @@ + + + + + + + + @@ -180,6 +178,13 @@ + + + + + + + @@ -200,19 +205,10 @@ - - - - - - - - - @@ -221,6 +217,7 @@ + @@ -238,6 +235,7 @@ + @@ -258,8 +256,8 @@ - + @@ -269,11 +267,11 @@ - + - + @@ -287,17 +285,17 @@ - - + + - + @@ -317,12 +315,19 @@ - + + + + + + + + @@ -339,68 +344,61 @@ - - - - - - - - + - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + @@ -425,7 +423,6 @@ - @@ -437,11 +434,12 @@ + - + @@ -463,9 +461,9 @@ + - @@ -495,6 +493,13 @@ + + + + + + + @@ -558,11 +563,11 @@ + - @@ -582,17 +587,10 @@ - - - - - - - - + @@ -649,6 +647,13 @@ + + + + + + + @@ -661,28 +666,17 @@ - + - - - - - - - - + - - - - @@ -690,13 +684,16 @@ + + + - - + + @@ -732,11 +729,13 @@ + - + + @@ -744,11 +743,14 @@ - + + + + @@ -788,8 +790,8 @@ - + @@ -798,8 +800,8 @@ - + @@ -808,8 +810,8 @@ - + @@ -836,8 +838,15 @@ - + + + + + + + + @@ -855,11 +864,11 @@ - + @@ -882,34 +891,17 @@ - - - - - - - - - - - - + - - - - - - @@ -917,12 +909,18 @@ + + + + + + @@ -1016,6 +1014,12 @@ + + + + + + @@ -1040,12 +1044,6 @@ - - - - - - @@ -1128,6 +1126,8 @@ + + @@ -1143,6 +1143,18 @@ + + + + + + + + + + + + @@ -1155,18 +1167,6 @@ - - - - - - - - - - - - @@ -1175,14 +1175,14 @@ - - + + @@ -1205,12 +1205,10 @@ - - - + @@ -1230,8 +1228,8 @@ - + @@ -1241,6 +1239,7 @@ + @@ -1253,6 +1252,16 @@ + + + + + + + + + + @@ -1260,12 +1269,12 @@ - - + + @@ -1355,17 +1364,6 @@ - - - - - - - - - - - @@ -1374,6 +1372,7 @@ + @@ -1381,10 +1380,6 @@ - - - - @@ -1392,6 +1387,9 @@ + + + @@ -1474,16 +1472,7 @@ - - - - - - - - - - + @@ -1505,6 +1494,16 @@ + + + + + + + + + + @@ -1538,16 +1537,6 @@ - - - - - - - - - - @@ -1585,6 +1574,16 @@ + + + + + + + + + + @@ -1675,8 +1674,8 @@ - + @@ -1710,16 +1709,6 @@ - - - - - - - - - - @@ -1731,6 +1720,23 @@ + + + + + + + + + + + + + + + + + @@ -1913,16 +1919,6 @@ - - - - - - - - - - @@ -1933,6 +1929,16 @@ + + + + + + + + + + @@ -1951,14 +1957,6 @@ - - - - - - - - @@ -1966,6 +1964,7 @@ + @@ -1973,6 +1972,13 @@ + + + + + + + @@ -1982,20 +1988,11 @@ - - - - - - - - - + - @@ -2004,19 +2001,13 @@ + - - - - - - - - - - + + + @@ -2050,8 +2041,8 @@ - + @@ -2059,7 +2050,7 @@ - + @@ -2082,7 +2073,14 @@ + + + + + + + \ No newline at end of file diff --git a/Aaru.Gui/Models/DeviceModel.cs b/Aaru.Gui/Models/DeviceModel.cs index 599ee5ec7..30ca4be01 100644 --- a/Aaru.Gui/Models/DeviceModel.cs +++ b/Aaru.Gui/Models/DeviceModel.cs @@ -1,11 +1,16 @@ +using System.Collections.ObjectModel; using Avalonia.Media.Imaging; namespace Aaru.Gui.Models { public class DeviceModel { + public DeviceModel() => Media = new ObservableCollection(); + public Bitmap Icon { get; set; } public string Name { get; set; } public string Path { get; set; } + + public ObservableCollection Media { get; } } } \ No newline at end of file diff --git a/Aaru.Gui/Models/MediaModel.cs b/Aaru.Gui/Models/MediaModel.cs new file mode 100644 index 000000000..d56f91d9c --- /dev/null +++ b/Aaru.Gui/Models/MediaModel.cs @@ -0,0 +1,11 @@ +using Avalonia.Media.Imaging; + +namespace Aaru.Gui.Models +{ + public class MediaModel + { + public Bitmap Icon { get; set; } + public string Name { get; set; } + public string DevicePath { get; set; } + } +} \ No newline at end of file diff --git a/Aaru.Gui/Views/MainWindow.xaml b/Aaru.Gui/Views/MainWindow.xaml index 1a410fc56..23f692756 100644 --- a/Aaru.Gui/Views/MainWindow.xaml +++ b/Aaru.Gui/Views/MainWindow.xaml @@ -103,7 +103,13 @@ - + + + + + + +