コード例 #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);



            Data.Activity activity = new Data.Activity();
            activity.Guid = "66AAEEF3-9257-4A16-A793-E7B83A69FFB9";
            MainWindowDisplay mainWindow = new MainWindowDisplay();

            mainWindow.LoadActivity(activity);


            mainWindow.Show();
        }
コード例 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);


            //try
            //{
            //    CO_IA.Client.SystemConfigLoader.RegisterSystemConfig();
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.Message);
            //    App.Current.Shutdown();
            //    return;
            //}
            //PortalWindow wnd = new PortalWindow();
            //this.MainWindow = wnd;
            //this.MainWindow.Show();

            //Data.Activity activity = new Data.Activity();
            //activity.Guid = "66AAEEF3-9257-4A16-A793-E7B83A69FFB9";
            //MainWindow mainWindow = new MainWindow();
            //mainWindow.LoadActivity(activity);


            //mainWindow.Show();
            string menutype = "";

            if (e.Args.Length > 0)
            {
                menutype = e.Args[0];
            }


            Data.Activity activity = new Data.Activity();
            activity.Guid = "66AAEEF3-9257-4A16-A793-E7B83A69FFB9";
            MainWindowDisplay mainWindow = new MainWindowDisplay(menutype);

            mainWindow.LoadActivity(activity);


            mainWindow.Show();
        }