コード例 #1
0
        static int Main(string[] aArgs)
        {
            int error = HeapAnalyser.Exceptions.HAUIException.KErrCommandLineNone;

            //
            try
            {
                // Enable visual styles if supported
                if (OSFeature.Feature.IsPresent(OSFeature.Themes))
                {
                    Application.EnableVisualStyles();
                    Application.DoEvents();
                }

                FSUtilities.ClearTempPath();

                HAUIManager uiManager = new HAUIManager(aArgs);
                error = uiManager.Run();
            }
            catch (Exception exception)
            {
                SymExceptionDialog dialog = new SymExceptionDialog();
                dialog.Exception = exception;
                dialog.ShowDialog();
            }
            //
            return(error);
        }
コード例 #2
0
 static void Main()
 {
     // Create UI manager which will act as application context
     try
     {
         FSUtilities.ClearTempPath();
         CAGraphicalUIManager uiManager = new CAGraphicalUIManager();
         uiManager.Run();
     }
     catch (Exception exception)
     {
         SymExceptionDialog dialog = new SymExceptionDialog();
         dialog.Exception = exception;
         dialog.ShowDialog();
     }
 }