using System; using System.Threading.Tasks; using System.Windows.Forms; namespace pkNX.WinForms { internal static class Program { /// /// The main entry point for the application. /// [STAThread] private static void Main() { // Make FlatSharp build the serializers for our FlatBuffer objects now and take the startup penalty async // Opening a FlatBuffer editor later won't be hit with a >5s delay assuming the user opens the editor no earlier than 10 seconds after program startup. _ = Task.Run(() => _ = Structures.FlatBuffers.FlatBufferConverter.SerializeFrom(new Structures.FlatBuffers.Waza8())); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); } } }