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; }
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 }; }
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); }
public PlaneNode(Uri picture, Account owner, DateTime? raiseTime) : base(raiseTime) { Picture = picture; Owner = owner; }