/// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString() + $",Name={PortfolioName}";

            if (TransactionId > 0)
            {
                str += $",TransId={TransactionId}";
            }

            if (Currency != null)
            {
                str += $",Curr={Currency.Value}";
            }

            if (!BoardCode.IsEmpty())
            {
                str += $",TransId={TransactionId}";
            }

            if (IsSubscribe)
            {
                str += $",IsSubscribe={IsSubscribe}";
            }

            if (Error != null)
            {
                str += $",Error={Error.Message}";
            }

            return(str);
        }
        private bool IsBoardValid()
        {
            if (BoardCode.IsEmpty())
            {
                _editor.SetSaveError(LocalizedStrings.Str1433);
                return(false);
            }

            if (SpecialHolidays.Intersect(SpecialWorkingDays).Any())
            {
                _editor.SetSaveError(LocalizedStrings.Str1434);
                return(false);
            }

            return(true);
        }
Beispiel #3
0
        /// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString() + $",Name={PortfolioName}";

            if (TransactionId > 0)
            {
                str += $",TransId={TransactionId}";
            }

            if (Currency != default)
            {
                str += $",Curr={Currency.Value}";
            }

            if (!BoardCode.IsEmpty())
            {
                str += $",Board={BoardCode}";
            }

            if (IsSubscribe)
            {
                str += $",IsSubscribe={IsSubscribe}";
            }

            if (From != default)
            {
                str += $",From={From.Value}";
            }

            if (To != default)
            {
                str += $",To={To.Value}";
            }

            if (Skip != default)
            {
                str += $",Skip={Skip.Value}";
            }

            if (Count != default)
            {
                str += $",Count={Count.Value}";
            }

            return(str);
        }
Beispiel #4
0
        /// <inheritdoc />
        public override string ToString()
        {
            var str = base.ToString() + $",Sec={SecurityId},Type={DataType},IsSubscribe={IsSubscribe}";

            if (Arg != null)
            {
                str += $",Arg={Arg}";
            }

            if (TransactionId != default)
            {
                str += $",TransId={TransactionId}";
            }

            if (OriginalTransactionId != default)
            {
                str += $",OrigId={OriginalTransactionId}";
            }

            if (MaxDepth != null)
            {
                str += $",MaxDepth={MaxDepth}";
            }

            if (Count != null)
            {
                str += $",Cnt={Count}";
            }

            if (From != null)
            {
                str += $",From={From}";
            }

            if (To != null)
            {
                str += $",To={To}";
            }

            if (BuildMode == MarketDataBuildModes.Build)
            {
                str += $",Build={BuildMode}/{BuildFrom}/{BuildField}";
            }

            if (AllowBuildFromSmallerTimeFrame)
            {
                str += $",SmallTF={AllowBuildFromSmallerTimeFrame}";
            }

            if (IsRegularTradingHours)
            {
                str += $",RTH={IsRegularTradingHours}";
            }

            if (IsFinished)
            {
                str += $",Fin={IsFinished}";
            }

            if (IsCalcVolumeProfile)
            {
                str += $",Profile={IsCalcVolumeProfile}";
            }

            if (!BoardCode.IsEmpty())
            {
                str += $",BoardCode={BoardCode}";
            }

            if (Error != null)
            {
                str += $",Error={Error.Message}";
            }

            if (IsOnline)
            {
                str += $",Online={IsOnline}";
            }

            return(str);
        }