예제 #1
0
 public void UpdateAnalogousReactionPreview(ReactionVM SelectedReaction)
 {
     if (AnalogousReactionPreview != null)
     {
         if (SelectedReaction != null)
         {
             AnalogousReactionPreview = ReactionViewBuilder.GetReactionView(SelectedReaction, AllParticipants.ToList());
         }
         else
         {
             AnalogousReactionPreview.Name = "Select Reaction To Preview . .";
         }
     }
 }
예제 #2
0
        public void UpdateReactionPreview(ReactionVM SelectedReaction)
        {
            var mainVM = (App.Current.MainWindow as MainWindow).DataContext as MainVM;

            #region Curator View
            if (MasterReactionPreview != null)
            {
                if (SelectedReaction != null)
                {
                    MasterReactionPreview = ReactionViewBuilder.GetReactionView(SelectedReaction, mainVM.TanVM.ReactionParticipants.ToList());
                }
                else
                {
                    MasterReactionPreview.Name = "Select Reaction To Preview . .";
                }
            }
            #endregion
        }
예제 #3
0
 public static ValidationError OfStage(ReactionVM reaction, string message, StageVM stageVM)
 {
     return(new ValidationError {
         ReactionVM = reaction, StageVM = stageVM, Message = message, Category = ValidationError.STAGE
     });
 }
예제 #4
0
 public static ValidationError OfRSN(ReactionVM reaction, string message, StageVM stageVM = null)
 {
     return(new ValidationError {
         ReactionVM = reaction, StageVM = stageVM, Message = message, Category = ValidationError.RSN
     });
 }
예제 #5
0
 public static ValidationError OfReaction(ReactionVM reaction, string message)
 {
     return(new ValidationError {
         ReactionVM = reaction, Message = message, Category = ValidationError.RXN
     });
 }