Scene/source builder with image overlays, reuse dialog, and SQLite layout persistence

This commit is contained in:
2026-08-04 17:12:32 -07:00
parent d6ae048583
commit 7dc8490d96
24 changed files with 2375 additions and 170 deletions
+1 -43
View File
@@ -5,34 +5,10 @@ namespace ytLive.ViewModels;
public class GoLiveViewModel : ViewModelBase
{
private bool _isSignedIn;
private string _accountName = string.Empty;
private string _streamTitle = string.Empty;
private string _streamDescription = string.Empty;
private string _visibility = "Public";
public bool IsSignedIn
{
get => _isSignedIn;
set
{
if (SetProperty(ref _isSignedIn, value))
{
OnPropertyChanged(nameof(ShowSignIn));
OnPropertyChanged(nameof(ShowAccount));
}
}
}
public bool ShowSignIn => !IsSignedIn;
public bool ShowAccount => IsSignedIn;
public string AccountName
{
get => _accountName;
set => SetProperty(ref _accountName, value);
}
public string StreamTitle
{
get => _streamTitle;
@@ -53,33 +29,15 @@ public class GoLiveViewModel : ViewModelBase
public string[] Visibilities { get; } = { "Public", "Unlisted", "Private" };
public ICommand SignInCommand { get; }
public ICommand ChangeAccountCommand { get; }
public ICommand StartCommand { get; }
public ICommand CancelCommand { get; }
public GoLiveViewModel()
{
SignInCommand = new RelayCommand(_ => SignIn());
ChangeAccountCommand = new RelayCommand(_ => ChangeAccount());
StartCommand = new RelayCommand(_ => StartRequested?.Invoke(), _ => IsSignedIn);
StartCommand = new RelayCommand(_ => StartRequested?.Invoke());
CancelCommand = new RelayCommand(_ => CancelRequested?.Invoke());
}
public event Action? StartRequested;
public event Action? CancelRequested;
private void SignIn()
{
// TODO: OAuth2 flow; for now simulate a successful sign-in
AccountName = "Connected Channel";
IsSignedIn = true;
}
private void ChangeAccount()
{
// TODO: re-run OAuth2; for now simulate signing out
IsSignedIn = false;
AccountName = string.Empty;
}
}