public void UpdateAnalogousReactionPreview(ReactionVM SelectedReaction) { if (AnalogousReactionPreview != null) { if (SelectedReaction != null) { AnalogousReactionPreview = ReactionViewBuilder.GetReactionView(SelectedReaction, AllParticipants.ToList()); } else { AnalogousReactionPreview.Name = "Select Reaction To Preview . ."; } } }
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 }
public static ValidationError OfStage(ReactionVM reaction, string message, StageVM stageVM) { return(new ValidationError { ReactionVM = reaction, StageVM = stageVM, Message = message, Category = ValidationError.STAGE }); }
public static ValidationError OfRSN(ReactionVM reaction, string message, StageVM stageVM = null) { return(new ValidationError { ReactionVM = reaction, StageVM = stageVM, Message = message, Category = ValidationError.RSN }); }
public static ValidationError OfReaction(ReactionVM reaction, string message) { return(new ValidationError { ReactionVM = reaction, Message = message, Category = ValidationError.RXN }); }