crashanalysercmd/UI/Graphical/EntryPoint.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 using System;
       
    19 using System.IO;
       
    20 using System.Text;
       
    21 using System.Drawing;
       
    22 using System.Collections;
       
    23 using System.ComponentModel;
       
    24 using System.Windows.Forms;
       
    25 using System.Data;
       
    26 using SymbianUtils;
       
    27 using SymbianUtils.Settings;
       
    28 using SymbianUtils.FileSystem.Utilities;
       
    29 using SymbianUtilsUi.Dialogs;
       
    30 using CrashAnalyser.UI;
       
    31 using CrashAnalyserEngine.Engine;
       
    32 
       
    33 namespace CrashAnalyser
       
    34 {
       
    35 	public static class EntryPoint
       
    36 	{
       
    37 		#region Application entry point
       
    38 		[STAThread]
       
    39 		static void Main() 
       
    40 		{
       
    41             // Create UI manager which will act as application context
       
    42             try
       
    43             {
       
    44                 FSUtilities.ClearTempPath();
       
    45                 CAGraphicalUIManager uiManager = new CAGraphicalUIManager();
       
    46                 uiManager.Run();
       
    47             }
       
    48             catch ( Exception exception )
       
    49             {
       
    50                 SymExceptionDialog dialog = new SymExceptionDialog();
       
    51                 dialog.Exception = exception;
       
    52                 dialog.ShowDialog();
       
    53             }
       
    54 		}
       
    55 		#endregion
       
    56     }
       
    57 }