예제 #1
0
 public SessionByIdModelProvider(Session s)
 {
     this.s = s;
     this.Sessions = new ObservableCollection<Session>();
 }
예제 #2
0
 public SessionByIdModelProvider SessionByIdModelProvider(Session s)
 {
     SessionByIdModelProvider provider = null;
     if (!_sessionByIdModelProvider.ContainsKey(s))
     {
         provider = new SessionByIdModelProvider(s);
         provider.LoadData();
         _sessionByIdModelProvider.Add(s, provider);
     }
     else
     {
         provider = _sessionByIdModelProvider[s];
     }
     return provider;
 }