/// <summary> /// Load FICS search criteria from properties setting /// </summary> /// <param name="searchCriteria"> Search criteria</param> public void LoadFICSSearchCriteria(FICSInterface.SearchCriteria searchCriteria) { searchCriteria.PlayerName = m_settings.FICSSPlayerName; searchCriteria.BlitzGame = m_settings.FICSSBlitz; searchCriteria.LightningGame = m_settings.FICSSLightning; searchCriteria.UntimedGame = m_settings.FICSSUntimed; searchCriteria.StandardGame = m_settings.FICSSStandard; searchCriteria.IsRated = m_settings.FICSSRated; searchCriteria.MinRating = SearchCriteria.CnvToNullableIntValue(m_settings.FICSSMinRating); searchCriteria.MinTimePerPlayer = SearchCriteria.CnvToNullableIntValue(m_settings.FICSSMinTimePerPlayer); searchCriteria.MaxTimePerPlayer = SearchCriteria.CnvToNullableIntValue(m_settings.FICSSMaxTimePerPlayer); searchCriteria.MinIncTimePerMove = SearchCriteria.CnvToNullableIntValue(m_settings.FICSSMinIncTimePerMove); searchCriteria.MaxIncTimePerMove = SearchCriteria.CnvToNullableIntValue(m_settings.FICSSMaxIncTimePerMove); searchCriteria.MaxMoveDone = m_settings.FICSSMaxMoveDone; searchCriteria.MoveTimeOut = SearchCriteria.CnvToNullableIntValue(m_settings.FICSMoveTimeOut); }