Added basic window

This commit is contained in:
2026-01-08 00:12:52 +01:00
parent 2fa0ae063d
commit ca8b8a362a

View File

@@ -1,5 +1,9 @@
using FlashCap; using FlashCap;
using Terminal.Gui.App;
using Terminal.Gui.Configuration;
using Terminal.Gui.ViewBase;
using Terminal.Gui.Views;
namespace Flashcap_Demo; namespace Flashcap_Demo;
@@ -8,6 +12,9 @@ internal static class Program
public static async Task Main(string[] args) public static async Task Main(string[] args)
{ {
var backgroundDownload = FFmpeg.DownloadBackground(); var backgroundDownload = FFmpeg.DownloadBackground();
var app = Application.Create();
app.Run<MainWindow>();
app.Dispose();
var device = new CaptureDevices(); var device = new CaptureDevices();
var deviceDescriptors = device.GetDescriptors() var deviceDescriptors = device.GetDescriptors()
.Where(x=>x.Characteristics.Length > 0) .Where(x=>x.Characteristics.Length > 0)
@@ -28,6 +35,15 @@ internal static class Program
Console.WriteLine("We have both a selected Device and FFmpeg"); Console.WriteLine("We have both a selected Device and FFmpeg");
} }
} }
internal class MainWindow : Window
{
public MainWindow()
{
Title = "CapEd";
}
}