Improving print history display
This commit is contained in:
parent
74f20132b4
commit
50041b2142
4 changed files with 16 additions and 7 deletions
|
|
@ -35,17 +35,19 @@ using MatterHackers.DataConverters3D;
|
|||
|
||||
namespace MatterHackers.MatterControl.Library
|
||||
{
|
||||
[Flags]
|
||||
public enum SortKey
|
||||
{
|
||||
Default,
|
||||
Name,
|
||||
CreatedDate,
|
||||
ModifiedDate,
|
||||
Default = 0,
|
||||
Name = 1,
|
||||
CreatedDate = 2,
|
||||
ModifiedDate = 4,
|
||||
}
|
||||
|
||||
public class SortBehavior
|
||||
{
|
||||
public SortKey SortKey { get; set; }
|
||||
|
||||
public bool Ascending { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
public class LibraryConfig : ILibraryContext
|
||||
{
|
||||
public event EventHandler<ContainerChangedEventArgs> ContainerChanged;
|
||||
|
||||
public event EventHandler<ContainerChangedEventArgs> ContentChanged;
|
||||
|
||||
private List<ILibraryContainerLink> libraryProviders;
|
||||
|
|
|
|||
|
|
@ -62,9 +62,15 @@ namespace MatterHackers.MatterControl.Library
|
|||
() => "Print History".Localize(),
|
||||
AggContext.StaticData.LoadIcon(Path.Combine("Library", "history_20x20.png")),
|
||||
AggContext.StaticData.LoadIcon(Path.Combine("Library", "history_folder.png")),
|
||||
() => new PrintHistoryContainer())
|
||||
() => new PrintHistoryContainer()
|
||||
{
|
||||
DefaultSort = new SortBehavior()
|
||||
{
|
||||
SortKey = SortKey.ModifiedDate,
|
||||
}
|
||||
})
|
||||
{
|
||||
IsReadOnly = true
|
||||
IsReadOnly = true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 53d8d254671058aa3f52a52bb7e7606a587041bf
|
||||
Subproject commit 3363e1f8b180074b61fc7838c0d471046c91ed96
|
||||
Loading…
Add table
Add a link
Reference in a new issue