public void useProps(ExecuteAbleProps props) { var item = items.Keys.Where(m => m.id == props.id).First(); items[item]--; if (items[item] == 0) { items.Remove(item); if (AProps.id == item.id) { AProps = null; } else if (SProps.id == item.id) { SProps = null; } else if (DProps.id == item.id) { DProps = null; } else if (FProps.id == item.id) { FProps = null; } else if (GProps.id == item.id) { GProps = null; } } }
public void equitToPropsTable(ExecuteAbleProps props) { if ((AProps != null && AProps.id == props.id) || (SProps != null && SProps.id == props.id) || (DProps != null && DProps.id == props.id) || (FProps != null && FProps.id == props.id) || (GProps != null && GProps.id == props.id) ) { return; } if (AProps == null) { AProps = props; return; } else if (SProps == null) { SProps = props; return; } else if (DProps == null) { DProps = props; return; } else if (FProps == null) { FProps = props; } else if (GProps == null) { GProps = null; } }