Exemplo n.º 1
0
 public bool Equals(PropId other)
 {
     return(string.Equals(_id, other._id));
 }
Exemplo n.º 2
0
        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)));
        }
Exemplo n.º 3
0
 public RenderablePropId(PropType propType, PropId propId)
 {
     _propType = propType;
     _propId   = propId;
 }