Пример #1
0
 public static HistoricalCourseEditorState UpdateProp(this HistoricalCourseEditorState state, EditorProp prop)
 {
     if (state.Props.ContainsKey(prop.Id))
     {
         return(state.Update(state.SelectedProp, state.Props.SetItem(prop.Id, prop), state.PropOrder));
     }
     else
     {
         return(state);
     }
 }
Пример #2
0
 public bool Equals(EditorProp other)
 {
     return(Id.Equals(other.Id) && PropType == other.PropType && Transform.Equals(other.Transform));
 }