mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:56:31 +00:00
23 lines
776 B
C#
23 lines
776 B
C#
using System.Collections.ObjectModel;
|
|
using System.IO;
|
|
using System.Windows;
|
|
|
|
namespace Azaion.Annotator.DTO;
|
|
|
|
public class FormState
|
|
{
|
|
public MediaFileInfo? CurrentMedia { get; set; }
|
|
public string VideoName => string.IsNullOrEmpty(CurrentMedia?.Name)
|
|
? ""
|
|
: Path.GetFileNameWithoutExtension(CurrentMedia.Name).Replace(" ", "");
|
|
|
|
public string CurrentMrl { get; set; } = null!;
|
|
public Size CurrentVideoSize { get; set; }
|
|
public TimeSpan CurrentVideoLength { get; set; }
|
|
|
|
public TimeSpan? BackgroundTime { get; set; }
|
|
public int CurrentVolume { get; set; } = 100;
|
|
public ObservableCollection<AnnotationResult> AnnotationResults { get; set; } = [];
|
|
|
|
public string GetTimeName(TimeSpan? ts) => $"{VideoName}_{ts:hmmssf}";
|
|
} |