Пример #1
0
 /// <summary>
 /// Creates a new trade with the given partner.
 /// </summary>
 /// <returns>
 /// <c>true</c>, if trade was opened,
 /// <c>false</c> if there is another trade that must be closed first.
 /// </returns>
 public bool OpenTrade(SteamID other)
 {
     if (CurrentTrade != null || CheckCookies() == false)
     {
         return(false);
     }
     SteamTrade.Trade(other);
     return(true);
 }
Пример #2
0
        /// <summary>
        /// Creates a new trade with the given partner.
        /// </summary>
        /// <returns>
        /// <c>true</c>, if trade was opened,
        /// <c>false</c> if there is another trade that must be closed first.
        /// </returns>
        public bool OpenTrade(SteamID other)
        {
            if (CurrentTrade != null)
            {
                return(false);
            }

            SteamTrade.Trade(other);

            return(true);
        }