コード例 #1
0
 public static SinglePlayerViewModel Instance(SinglePlayerModel model)
 {
     instanceMutex.WaitOne();
     if (instance == null)
     {
         instance = new SinglePlayerViewModel(model);
     }
     instanceMutex.ReleaseMutex();
     return(instance);
 }
コード例 #2
0
 private SinglePlayerViewModel(SinglePlayerModel model)
 {
     this.model = model;
 }