Example #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main()
        {
            try
            {
                IApplicationContext ctx = ContextRegistry.GetContext();
                form = new ResourcesDisplayForm();

                DemoMessageLocalization(ctx);
                DemoImageResource(ctx);
                Application.Run(form);
            }
            catch (Exception e)
            {
                write(e.Message);
                write(e.StackTrace);
                if (e.InnerException != null)
                {
                    write(e.InnerException.Message);
                }
            }
        }
Example #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main()
        {
            try
            {
                IApplicationContext ctx = ContextRegistry.GetContext();                   
                form = new ResourcesDisplayForm();

                DemoMessageLocalization(ctx);
                DemoImageResource(ctx);
                Application.Run(form);
            }
            catch (Exception e)
            {
                write(e.Message);
                write(e.StackTrace);
                if (e.InnerException != null)
                {
                    write(e.InnerException.Message);
                }
            }
        }