Files
annotations/Azaion.Annotator/Azaion.Annotator/DTO/FormState.cs
T
Oleksandr Bezdieniezhnykh 6809a9cedf annotation previews
add button controls
2024-05-15 18:22:40 +03:00

17 lines
513 B
C#

using System.IO;
using System.Windows;
namespace Azaion.Annotator.DTO;
public class FormState
{
public SelectionState SelectionState { get; set; } = SelectionState.None;
public string CurrentFile { get; set; } = null!;
public Size CurrentVideoSize { get; set; }
public string VideoName => Path.GetFileNameWithoutExtension(CurrentFile).Replace(" ", "");
public TimeSpan CurrentVideoLength { get; set; }
public string GetTimeName(TimeSpan ts) => $"{VideoName}_{ts:hmmssf}";
}