Exemple #1
0
 /// <summary>
 /// Save FICS search criteria to properties setting
 /// </summary>
 /// <param name="searchCriteria">   Search criteria</param>
 public void SaveFICSSearchCriteria(FICSInterface.SearchCriteria searchCriteria)
 {
     m_settings.FICSSPlayerName        = searchCriteria.PlayerName;
     m_settings.FICSSBlitz             = searchCriteria.BlitzGame;
     m_settings.FICSSLightning         = searchCriteria.LightningGame;
     m_settings.FICSSUntimed           = searchCriteria.UntimedGame;
     m_settings.FICSSStandard          = searchCriteria.StandardGame;
     m_settings.FICSSRated             = searchCriteria.IsRated;
     m_settings.FICSSMinRating         = searchCriteria.MinRating.ToString();
     m_settings.FICSSMinTimePerPlayer  = searchCriteria.MinTimePerPlayer.ToString();
     m_settings.FICSSMaxTimePerPlayer  = searchCriteria.MaxTimePerPlayer.ToString();
     m_settings.FICSSMinIncTimePerMove = searchCriteria.MinIncTimePerMove.ToString();
     m_settings.FICSSMaxIncTimePerMove = searchCriteria.MaxIncTimePerMove.ToString();
     m_settings.FICSSMaxMoveDone       = searchCriteria.MaxMoveDone;
     m_settings.FICSMoveTimeOut        = searchCriteria.MoveTimeOut.ToString();
 }
Exemple #2
0
 /// <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);
 }