/// <summary> /// Initialization code common to both the deserialized and /// non-deserialized cases. This must be called in the WM spawner. /// </summary> public void Initialize(WmLocalDb localDb) { LocalDb = localDb; LocalDbBroker = new WmLocalDbBroker(LocalDb); Sm = new WmStateMachine(this); OutlookBroker = new WmOutlookBroker(this); OutlookBroker.OnThreadCollected += OnThreadCollected; KmodBroker = new WmKmodBroker(); KmodBroker.OnThreadCollected += OnThreadCollected; UiBroker = new WmUiBroker(this); // Create or upgrade the database. LocalDbBroker.InitDb(); // Open the lingering database transaction. LocalDbBroker.BeginTransaction(); }
public WmGuiExecWakeUpMsg(WmStateMachine wm) { m_wm = wm; }