public static ImageSorterApplicationContext GetContext() { if (context == null) { context = new ImageSorterApplicationContext(); } return(context); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var context = ImageSorterApplicationContext.GetContext(); ImageSorterApplicationContext.GetContext().RunNew(); Application.Run(context); }