diff --git a/VisualBundle/ItemModel.cs b/VisualBundle/ItemModel.cs index 30f6fde..a456636 100644 --- a/VisualBundle/ItemModel.cs +++ b/VisualBundle/ItemModel.cs @@ -48,12 +48,11 @@ public ItemModel GetChildItem(string Name) } public class FolderModel : ItemModel { - private static ImageSource _icon = Properties.Resources.dir; override public ImageSource Icon { get { - return _icon; + return Properties.Resources.dir; } } public FolderModel() : base() @@ -67,12 +66,11 @@ public FolderModel(string name) : this() } public class FileModel : ItemModel { - private static ImageSource _icon = Properties.Resources.file; override public ImageSource Icon { get { - return _icon; + return Properties.Resources.file; } } public FileModel() diff --git a/VisualBundle/MainWindow.xaml b/VisualBundle/MainWindow.xaml index 9219b54..33e24b1 100644 --- a/VisualBundle/MainWindow.xaml +++ b/VisualBundle/MainWindow.xaml @@ -11,27 +11,27 @@ - + - - - - - - - -