public MainWindow() { Equipment.EquipmentManager.USE_DEBUG_VIEW = true; #if DEBUG if (MessageBox.Show("시뮬레이션 모드로 사용하시겠습니까?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes) Equipment.EquipmentManager.SIMULATION_MODE = true; else Equipment.EquipmentManager.SIMULATION_MODE = false; #endif #if DEBUG if (MessageBox.Show("디버그 뷰를 사용하시겠습니까?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes) Equipment.EquipmentManager.USE_DEBUG_VIEW = true; else Equipment.EquipmentManager.USE_DEBUG_VIEW = false; #endif InitializeComponent(); LogManager.Instance.IsEnabledTraceLog = false; WindowSplash splash = new WindowSplash(); CreatePage(); splash.Show(); Initialize(); Manager.StringResourceManager.Instance.Refresh(); splash.Close(); }
public MainWindow() { InitializeComponent(); LogManager.Instance.IsEnabledTraceLog = false; WindowSplash splash = new WindowSplash(); splash.Show(); Initialize(); splash.Close(); }
public MainWindow() { Equipment.EquipmentManager.USE_DEBUG_VIEW = true; Equipment.EquipmentManager.SIMULATION_MODE = false; //#if DEBUG // if (MessageBox.Show("시뮬레이션 모드로 사용하시겠습니까?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes) // Equipment.EquipmentManager.SIMULATION_MODE = true; // else // Equipment.EquipmentManager.SIMULATION_MODE = false; //#endif //#if DEBUG // if (MessageBox.Show("디버그 뷰를 사용하시겠습니까?", "", MessageBoxButton.YesNo) == MessageBoxResult.Yes) // Equipment.EquipmentManager.USE_DEBUG_VIEW = true; // else // Equipment.EquipmentManager.USE_DEBUG_VIEW = false; //#endif InitializeComponent(); LogManager.Instance.IsEnabledTraceLog = false; AutoResetEvent splashDone = new AutoResetEvent(false); AutoResetEvent initializeDone = new AutoResetEvent(false); CreatePage(); var thread = new Thread( new ThreadStart( delegate() { WindowSplash splash = new WindowSplash(); splash.Show(); //System.Windows.Threading.Dispatcher.Run(); splashDone.WaitOne(); })); thread.SetApartmentState(ApartmentState.STA); thread.IsBackground = true; thread.Start(); Equipment.EquipmentManager.Instance.Initialize = delegate() { Dispatcher.Invoke(Delegate.CreateDelegate(typeof(Action), this, "Initialize")); splashDone.Set(); Manager.StringResourceManager.Instance.Refresh(); }; Equipment.EquipmentManager.Instance.Start(); }