Esempio n. 1
0
 public bool Equals(PropId other)
 {
     return(string.Equals(_id, other._id));
 }
        public static HistoricalCourseEditorState DeleteProp(this HistoricalCourseEditorState state, PropId id)
        {
            var selectedProp = state.SelectedProp.Equals(Maybe.Just(id)) ? Maybe.Nothing <PropId>() : state.SelectedProp;

            return(state.Update(selectedProp, state.Props.Remove(id), state.PropOrder.Remove(id)));
        }
Esempio n. 3
0
 public RenderablePropId(PropType propType, PropId propId)
 {
     _propType = propType;
     _propId   = propId;
 }