示例#1
0
        public void UserAccountDeleted(Account account)
        {
            TimelineManager timeline = TimelineManager.Instance;

            foreach (Frame frame in timeline.Items)
            {
                if (frame.FrameAccount.ID == account.ID)
                {
                    TimelineManager.Instance.Remove(frame);
                }
            }

            TimelineManager.RemoveCachedFramesFromDBFromAccount(account.ID);
            StatusManager.RemoveStatus(new Status(account.ID, "Account deleted"));
            TimelineManager.Update();
        }
示例#2
0
        /// <summary>
        /// Constructor
        /// </summary>
        private TimelineManager()
        {
            this._listeners = new ArrayList();

            // update timer
            this._timer          = new DispatcherTimer();
            this._timer.Interval = TimeSpan.FromSeconds(5 * 60);
            this._timer.Tick    += new EventHandler(delegate(object s, EventArgs a) {
                TimelineManager.Update();
            });
            this._timer.Start();

            ConfigurationManager.AddAuthenticationListenner(this);
            ConfigurationManager.AddUserAccountsListenner(this);
            ConfigurationManager.AddUsersListenner(this);
        }
示例#3
0
 public void UserAccountCreated(Account account)
 {
     TimelineManager.Update();
 }
示例#4
0
 public void UserLoggedIn(User user)
 {
     TimelineManager.Update();
 }