Пример #1
0
 public static FindFriendsWindow GetInstance(String accessToken) 
 {
     if (FindFriendsWindow.instance == null) 
     { 
         lock (_syncRoot) 
         {
             if (FindFriendsWindow.instance == null) 
             {
                 FindFriendsWindow.instance = new FindFriendsWindow(accessToken); 
             } 
         } 
     }
     return FindFriendsWindow.instance; 
 }
Пример #2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     instance = null;
 }