public void AbandonQuotePrice(QuotePriceClient quotePrice, QuotePriceForInstrument quotePriceForInstrument, bool isSigle, Button btn)
 {
     if (quotePriceForInstrument != null)
     {
         List<Answer> quoteQuotations = new List<Answer>();
         if (isSigle)
         {
             if (quotePrice != null)
             {
                 quoteQuotations.Add(quotePrice.ToSendQutoPrice());
             }
         }
         else
         {
             quoteQuotations = quotePriceForInstrument.GetSelectedQuotePriceForAccount();
         }
         if (quoteQuotations.Count > 0)
         {
             var AbandonQuoteEventLog = new EventLogEntity(Guid.NewGuid())
             {
                //write log
             };
         }
         //Notify service
         string exchangeCode = string.Empty;
         ConsoleClient.Instance.AbandonQuote(quoteQuotations);
     }
 }
 private void SendQuotePrice(QuotePriceClient quotePrice, QuotePriceForInstrument quotePriceForInstrument, bool isSingle, Button btn)
 {
     if (quotePriceForInstrument != null)
     {
         List<Answer> ToSendQutoPrices = new List<Answer>();
         if (isSingle)
         {
             if (quotePrice != null)
             {
                 ToSendQutoPrices.Add(quotePrice.ToSendQutoPrice());
             }
         }
         else
         {
             ToSendQutoPrices = quotePriceForInstrument.GetSelectedQuotePriceForAccount();
         }
         if (ToSendQutoPrices.Count > 0)
         {
             var ConfirmedQuoteEventLog = new EventLogEntity(Guid.NewGuid())
             {
                 //Write Log
             };
             object[] abandonStatus = new object[] { ConfirmedQuoteEventLog, btn };
             ConsoleClient.Instance.SendQuotePrice(ToSendQutoPrices);
         }
     }
 }
        private Answer GetSelectedQuotePriceForAccount(QuotePriceClient quotePrice)
        {
            Answer quoteQuotation = quotePrice.ToSendQutoPrice();
            quoteQuotation.InstrumentId = this.InstrumentClient.Id;
            quoteQuotation.TimeStamp = ShareFixedData.GetServiceTime();

            return quoteQuotation;
        }