Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
 public WmGuiExecWakeUpMsg(WmStateMachine wm)
 {
     m_wm = wm;
 }