public DisplayTaskBag( [NotNull] NotificationDisplayTask task, [NotNull] NotificationWindowVM windowVM, DateTime enqueueTime, PositionSize positionSize) { Assert.ArgumentNotNull(task, "task"); Assert.ArgumentNotNull(windowVM, "windowVM"); this.Task = task; this.WindowVM = windowVM; this.EnqueueTime = enqueueTime; this.PositionSize = positionSize; }
public NotificationWindowVM( [NotNull] PositionSize actualPositionAndSize, [NotNull] IResultProvider nestedNotificationVM, [NotNull] string originator) { Assert.ArgumentNotNull(actualPositionAndSize, "actualPositionAndSize"); Assert.ArgumentNotNull(nestedNotificationVM, "nestedNotificationVM"); Assert.ArgumentNotNullOrEmpty(originator, "originator"); this.positionAndSize = actualPositionAndSize; this.positionAndSize.Changed += this.PositionAndSizeOnChanged; this.NestedNotificationVM = nestedNotificationVM; this.NestedNotificationVM.ResultObtained += this.OnResultObtainedFromNestedNotification; this.isAlive = true; this.permanentCloseDescription = this.GetPermanentCloseDescription(originator); this.Result = new NotificationResult(ResultCode.Unspecified); this.CloseCommand = new RelayCommand(this.OnCloseCommandExecute, true); this.PermanentCloseCommand = new RelayCommand(this.OnPermanentlyCloseExecute, true); }
protected virtual NotificationWindowVM GetNotificationWindowVM(NotificationDisplayTask task, PositionSize actualPositionAndSize) { return new NotificationWindowVM(actualPositionAndSize, task.RelatedSpecializedNotification, task.Originator); }