Esempio n. 1
0
 public CloudNode(Account owner, Controls.CloudStateType status, int cloudTypeId, DateTime checkinTime, TimeSpan checkinSpan, TimeSpan displaySpan, DateTime? raiseTime = null)
 {
     Owner = owner;
     Status = status;
     CloudTypeId = cloudTypeId;
     CheckinTime = checkinTime;
     CheckinSpan = checkinSpan;
     DisplaySpan = displaySpan;
 }
Esempio n. 2
0
 public static PlaneNode[] CreatePlanePair(Uri imageUrl, Account owner, DateTime? raiseTime)
 {
     var home = new PlaneNode(imageUrl, owner, raiseTime);
     var time = new PlaneNode(imageUrl, owner, raiseTime);
     home.IsReadedChanged += (sender, e) =>
     {
         if (time.IsReaded)
             return;
         time.IsReaded = true;
         time.OnIsReadedChanged(new ExEventArgs<bool>(true));
     };
     time.IsReadedChanged += (sender, e) =>
     {
         if (home.IsReaded)
             return;
         home.IsReaded = true;
         home.OnIsReadedChanged(new ExEventArgs<bool>(true));
     };
     return new PlaneNode[] { home, time };
 }
Esempio n. 3
0
 public CheckinStateViewModel(Account accountModel, string name, Controls.CloudStateType type, Uri icon, Dispatcher uiDispatcher)
     : base(uiDispatcher)
 {
     _accountModel = accountModel;
     _weather = type;
     Name = name;
     Icon = icon;
     SelecteStatusCommand = new ViewModel.RelayCommand(SelectedStatus_Executed);
 }
Esempio n. 4
0
 public PlaneNode(Uri picture, Account owner, DateTime? raiseTime)
     : base(raiseTime)
 {
     Picture = picture;
     Owner = owner;
 }