Ejemplo n.º 1
0
        static void Main(string[] args)
        {
#if CONSOLE
            AllocConsole();
#endif
            if (!System.Diagnostics.Debugger.IsAttached)
            {
                Application.ThreadException += Application_ThreadException;
                AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SplashForm splash = null;
            if (!System.Diagnostics.Debugger.IsAttached)
            {
                splash = new SplashForm();
                splash.Show();
                Application.DoEvents();
            }

            ClientCore core = new ClientCore();
            core.Initialize(args);

            if (!System.Diagnostics.Debugger.IsAttached)
            {
                splash.Close();
                splash = null;
            }

            Application.Run(core.MainWindow);

            core.Uninitialize();

            Properties.Settings.Default.Save();

#if CONSOLE
            FreeConsole();
#endif
        }
Ejemplo n.º 2
0
 public ClientCore()
 {
     s_clientCore = this;
 }
Ejemplo n.º 3
0
        public MainWindow(ClientCore clientCore)
        {
            InitializeComponent();

            m_clientCore = clientCore;
        }