Icon, Tab state persistence

This commit is contained in:
2022-02-03 13:08:35 +01:00
parent 1ea1012703
commit 3da246b3ca
28 changed files with 283 additions and 31 deletions

View File

@@ -0,0 +1,7 @@
namespace FileTime.Avalonia.Models.Persistence
{
public class PersistenceRoot
{
public TabStates? TabStates { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using FileTime.Avalonia.Application;
namespace FileTime.Avalonia.Models.Persistence
{
public class TabState
{
public string? Path { get; set; }
public int Number { get; set; }
public TabState() { }
public TabState(TabContainer tab)
{
Path = tab.CurrentLocation.Item.FullName;
Number = tab.TabNumber;
}
}
}

View File

@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace FileTime.Avalonia.Models.Persistence
{
public class TabStates
{
public List<TabState>? Tabs { get; set; }
public int? ActiveTabNumber { get; set; }
}
}