public MainWindow() { MyDispatcher = new LocklessLazyWriteOnce <Dispatcher>(() => Dispatcher.CurrentDispatcher); InitializeComponent(); }
public MainWindow() { InitializeComponent(); _stressSimFactory = new LocklessLazyWriteOnce <StressSimulationFactory>(InitStressSimulationFactory); btnInitialize.IsEnabled = true; }