중간 과정 진행 후 커밋
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
using Microsoft.UI;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
using Tornado3_2026Election.Common;
|
||||
|
||||
namespace Tornado3_2026Election.Domain;
|
||||
@@ -38,6 +38,7 @@ public sealed class ChannelScheduleItem : ObservableObject
|
||||
{
|
||||
OnPropertyChanged(nameof(StateLabel));
|
||||
OnPropertyChanged(nameof(StateBrush));
|
||||
OnPropertyChanged(nameof(CardOpacity));
|
||||
OnPropertyChanged(nameof(CanDelete));
|
||||
}
|
||||
}
|
||||
@@ -60,7 +61,7 @@ public sealed class ChannelScheduleItem : ObservableObject
|
||||
{
|
||||
ScheduleQueueItemState.Next => "다음",
|
||||
ScheduleQueueItemState.Sending => "준비",
|
||||
ScheduleQueueItemState.OnAir => "송출중",
|
||||
ScheduleQueueItemState.OnAir => "송출 중",
|
||||
ScheduleQueueItemState.Completed => "완료",
|
||||
ScheduleQueueItemState.Error => "오류",
|
||||
_ => "대기"
|
||||
@@ -69,19 +70,19 @@ public sealed class ChannelScheduleItem : ObservableObject
|
||||
[JsonIgnore]
|
||||
public SolidColorBrush StateBrush => new(State switch
|
||||
{
|
||||
ScheduleQueueItemState.Next => ColorHelper.FromArgb(255, 255, 145, 77),
|
||||
ScheduleQueueItemState.Sending => ColorHelper.FromArgb(255, 255, 191, 0),
|
||||
ScheduleQueueItemState.OnAir => ColorHelper.FromArgb(255, 202, 52, 52),
|
||||
ScheduleQueueItemState.Completed => ColorHelper.FromArgb(255, 68, 104, 77),
|
||||
ScheduleQueueItemState.Error => ColorHelper.FromArgb(255, 110, 39, 39),
|
||||
_ => ColorHelper.FromArgb(255, 80, 90, 110)
|
||||
ScheduleQueueItemState.Next => ColorHelper.FromArgb(255, 245, 158, 11),
|
||||
ScheduleQueueItemState.OnAir => ColorHelper.FromArgb(255, 239, 68, 68),
|
||||
_ => ColorHelper.FromArgb(255, 100, 116, 139)
|
||||
});
|
||||
|
||||
[JsonIgnore]
|
||||
public double CardOpacity => State == ScheduleQueueItemState.Completed ? 0.45 : 1.0;
|
||||
|
||||
[JsonIgnore]
|
||||
public bool CanDelete => State is not ScheduleQueueItemState.OnAir and not ScheduleQueueItemState.Sending;
|
||||
|
||||
[JsonIgnore]
|
||||
public string LastPlayedLabel => LastPlayedAt?.ToString("HH:mm:ss") ?? "not played";
|
||||
public string LastPlayedLabel => LastPlayedAt?.ToString("HH:mm:ss") ?? "아직 송출 안 함";
|
||||
|
||||
public static ChannelScheduleItem FromTemplate(FormatTemplateDefinition template)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user