/// <summary>
        /// Publishes a Manual Fill
        /// </summary>
        private void PublishManualFillRecord()
        {
            AdminFillRequiredFields requiredFields = new AdminFillRequiredFields();
            requiredFields.InstrumentDetails = m_settings.Instrument.NativeInstrument.InstrumentDetails;
            requiredFields.OrderFeed = m_settings.OrderFeed;
            
            requiredFields.MemberId = m_settings.Member;
            requiredFields.GroupId = m_settings.Group;
            requiredFields.TraderId = m_settings.Trader;
            requiredFields.Username = m_settings.Username;

            requiredFields.BuySell = m_settings.BuySell;
            requiredFields.Price = Price.FromString(m_settings.Instrument.NativeInstrument, m_settings.Price);
            requiredFields.Quantity = Quantity.FromInt(m_settings.Instrument.NativeInstrument, m_settings.Quantity);

            AdminFillRecord manualFillRecord = new AdminFillRecord(requiredFields);

            if (m_settings.AccountType != AccountType.None)
            {
                manualFillRecord.AccountType = m_settings.AccountType;
            }

            if (m_settings.Account != null && m_settings.Account.Trim() != String.Empty)
            {
                manualFillRecord.AccountName = m_settings.Account;
            }

            if (m_settings.RiskAccount != null && m_settings.RiskAccount.Trim() != String.Empty)
            {
                manualFillRecord.RiskAccount = m_settings.RiskAccount;
            }

            if (m_settings.FFT2 != null && m_settings.FFT2.Trim() != String.Empty)
            {
                manualFillRecord.FFT2 = m_settings.FFT2;
            }

            if (m_settings.FFT3 != null && m_settings.FFT3.Trim() != String.Empty)
            {
                manualFillRecord.FFT3 = m_settings.FFT3;
            }

            if (m_settings.UserTag != null && m_settings.UserTag.Trim() != String.Empty)
            {
                manualFillRecord.UserTag = m_settings.UserTag;
            }

            if (m_settings.OrderTag != null && m_settings.OrderTag.Trim() != String.Empty)
            {
                manualFillRecord.OrderTag = m_settings.OrderTag;
            }

            if (m_settings.CounterPartyMemberID != null && m_settings.CounterPartyMemberID.Trim() != String.Empty)
            {
                manualFillRecord.CounterpartyMemberId = m_settings.CounterPartyMemberID;
            }

            if (m_settings.CounterPartyGiveUpID != null && m_settings.CounterPartyGiveUpID.Trim() != String.Empty)
            {
                manualFillRecord.CounterPartyGiveUpId = m_settings.CounterPartyGiveUpID;
            }

            if (m_settings.ExchangeOrderID != null && m_settings.ExchangeOrderID.Trim() != String.Empty)
            {
                manualFillRecord.ExchangeOrderId = m_settings.ExchangeOrderID;
            }

            if (m_settings.GiveUpID != null && m_settings.GiveUpID.Trim() != String.Empty)
            {
                manualFillRecord.GiveUpId = m_settings.GiveUpID;
            }

            if (m_settings.GiveUpMemberID != null && m_settings.GiveUpMemberID.Trim() != String.Empty)
            {
                manualFillRecord.GiveupMemberId = m_settings.GiveUpMemberID;
            }

            if (m_settings.OrderNumber != null && m_settings.OrderNumber.Trim() != String.Empty)
            {
                manualFillRecord.OrderNumber = Convert.ToUInt64(m_settings.OrderNumber);
            }

            string errorMessage = "";
            if (!m_TTAPI.Session.RiskManager.Publish(manualFillRecord, out errorMessage))
            {
                MessageBox.Show(String.Format("Publish failed with: {0}", errorMessage));
            }
        }
        /// <summary>
        /// Publishes a Manual Fill
        /// </summary>
        private void PublishManualFillRecord()
        {
            AdminFillRequiredFields requiredFields = new AdminFillRequiredFields();

            requiredFields.InstrumentDetails = m_settings.Instrument.NativeInstrument.InstrumentDetails;
            requiredFields.OrderFeed         = m_settings.OrderFeed;

            requiredFields.MemberId = m_settings.Member;
            requiredFields.GroupId  = m_settings.Group;
            requiredFields.TraderId = m_settings.Trader;
            requiredFields.Username = m_settings.Username;

            requiredFields.BuySell  = m_settings.BuySell;
            requiredFields.Price    = Price.FromString(m_settings.Instrument.NativeInstrument, m_settings.Price);
            requiredFields.Quantity = Quantity.FromInt(m_settings.Instrument.NativeInstrument, m_settings.Quantity);

            AdminFillRecord manualFillRecord = new AdminFillRecord(requiredFields);

            if (m_settings.AccountType != AccountType.None)
            {
                manualFillRecord.AccountType = m_settings.AccountType;
            }

            if (m_settings.Account != null && m_settings.Account.Trim() != String.Empty)
            {
                manualFillRecord.AccountName = m_settings.Account;
            }

            if (m_settings.RiskAccount != null && m_settings.RiskAccount.Trim() != String.Empty)
            {
                manualFillRecord.RiskAccount = m_settings.RiskAccount;
            }

            if (m_settings.FFT2 != null && m_settings.FFT2.Trim() != String.Empty)
            {
                manualFillRecord.FFT2 = m_settings.FFT2;
            }

            if (m_settings.FFT3 != null && m_settings.FFT3.Trim() != String.Empty)
            {
                manualFillRecord.FFT3 = m_settings.FFT3;
            }

            if (m_settings.UserTag != null && m_settings.UserTag.Trim() != String.Empty)
            {
                manualFillRecord.UserTag = m_settings.UserTag;
            }

            if (m_settings.OrderTag != null && m_settings.OrderTag.Trim() != String.Empty)
            {
                manualFillRecord.OrderTag = m_settings.OrderTag;
            }

            if (m_settings.CounterPartyMemberID != null && m_settings.CounterPartyMemberID.Trim() != String.Empty)
            {
                manualFillRecord.CounterpartyMemberId = m_settings.CounterPartyMemberID;
            }

            if (m_settings.CounterPartyGiveUpID != null && m_settings.CounterPartyGiveUpID.Trim() != String.Empty)
            {
                manualFillRecord.CounterPartyGiveUpId = m_settings.CounterPartyGiveUpID;
            }

            if (m_settings.ExchangeOrderID != null && m_settings.ExchangeOrderID.Trim() != String.Empty)
            {
                manualFillRecord.ExchangeOrderId = m_settings.ExchangeOrderID;
            }

            if (m_settings.GiveUpID != null && m_settings.GiveUpID.Trim() != String.Empty)
            {
                manualFillRecord.GiveUpId = m_settings.GiveUpID;
            }

            if (m_settings.GiveUpMemberID != null && m_settings.GiveUpMemberID.Trim() != String.Empty)
            {
                manualFillRecord.GiveupMemberId = m_settings.GiveUpMemberID;
            }

            if (m_settings.OrderNumber != null && m_settings.OrderNumber.Trim() != String.Empty)
            {
                manualFillRecord.OrderNumber = Convert.ToUInt64(m_settings.OrderNumber);
            }

            string errorMessage = "";

            if (!m_TTAPI.Session.RiskManager.Publish(manualFillRecord, out errorMessage))
            {
                MessageBox.Show(String.Format("Publish failed with: {0}", errorMessage));
            }
        }