move Windows app to Windows folder, create folder for Web, create simplest web api service

This commit is contained in:
Alex Bezdieniezhnykh
2024-07-11 19:40:17 +03:00
parent ea8d0e686a
commit 32c92fedf2
41 changed files with 138 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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 int CurrentVolume { get; set; } = 100;
public string GetTimeName(TimeSpan ts) => $"{VideoName}_{ts:hmmssf}";
}