Beispiel #1
0
 // %Singleton%
 private void buttonUpdateListBox_Click(object sender, EventArgs e)
 {
     m_LogicListOfWallPostsLikers = LogicListOfWallPostsLikers.GetInstance(m_LoggedInUser);
     labelLoading.Visible         = true;
     labelLoading.Refresh();
     m_LogicListOfWallPostsLikers.LikesByFriends(listBoxNames, monthCalendar);
     labelLoading.Visible = false;
     labelLoading.Refresh();
 }
        public static LogicListOfWallPostsLikers GetInstance(User i_LoggedInUser)
        {
            // $G$ DSN-999 (-5) This implementation isn't thread safe
            if (s_Instance == null)
            {
                s_Instance = new LogicListOfWallPostsLikers(i_LoggedInUser);
            }

            return(s_Instance);
        }