示例#1
0
 /// <summary>
 /// Remove the cached frames from DB
 /// </summary>
 /// <param name="accountId">integer with the account identification</param>
 public static void RemoveCachedFramesFromDBFromAccount(int accountId)
 {
     if (ConfigurationManager.IsAuthenticated)
     {
         TimelineManager.RemoveCachedFramesFromDBFromAccount(ConfigurationManager.AuthenticatedUser.ID, accountId);
     }
 }
示例#2
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();
        }