private static void UpdateCurrency(SecureTradeInfo left, SecureTradeInfo right)
        {
            if (left.Mobile.NetState != null && left.Mobile.NetState.NewSecureTrading)
            {
                var plat = left.Mobile.Account.TotalPlat;
                var gold = left.Mobile.Account.TotalGold;

                left.Mobile.Send(new UpdateSecureTrade(left.Container, TradeFlag.UpdateLedger, gold, plat));
            }

            if (right.Mobile.NetState != null && right.Mobile.NetState.NewSecureTrading)
            {
                right.Mobile.Send(new UpdateSecureTrade(right.Container, TradeFlag.UpdateGold, left.Gold, left.Plat));
            }
        }
        public SecureTrade(Mobile from, Mobile to)
        {
            m_Valid = true;

            m_From = new SecureTradeInfo(this, from, new SecureTradeContainer(this));
            m_To   = new SecureTradeInfo(this, to, new SecureTradeContainer(this));

            var from6017 = (from.NetState != null && from.NetState.ContainerGridLines);
            var to6017   = (to.NetState != null && to.NetState.ContainerGridLines);

            var from704565 = (from.NetState != null && from.NetState.NewSecureTrading);
            var to704565   = (to.NetState != null && to.NetState.NewSecureTrading);

            from.Send(new MobileStatus(from, to));
            from.Send(new UpdateSecureTrade(m_From.Container, false, false));

            if (from6017)
            {
                from.Send(new SecureTradeEquip6017(m_To.Container, to));
            }
            else
            {
                from.Send(new SecureTradeEquip(m_To.Container, to));
            }

            from.Send(new UpdateSecureTrade(m_From.Container, false, false));

            if (from6017)
            {
                from.Send(new SecureTradeEquip6017(m_From.Container, from));
            }
            else
            {
                from.Send(new SecureTradeEquip(m_From.Container, from));
            }

            from.Send(new DisplaySecureTrade(to, m_From.Container, m_To.Container, to.Name));
            from.Send(new UpdateSecureTrade(m_From.Container, false, false));

            if (from.Account != null && from704565)
            {
                from.Send(
                    new UpdateSecureTrade(m_From.Container, TradeFlag.UpdateLedger, from.Account.TotalGold, from.Account.TotalPlat));
            }

            to.Send(new MobileStatus(to, from));
            to.Send(new UpdateSecureTrade(m_To.Container, false, false));

            if (to6017)
            {
                to.Send(new SecureTradeEquip6017(m_From.Container, from));
            }
            else
            {
                to.Send(new SecureTradeEquip(m_From.Container, from));
            }

            to.Send(new UpdateSecureTrade(m_To.Container, false, false));

            if (to6017)
            {
                to.Send(new SecureTradeEquip6017(m_To.Container, to));
            }
            else
            {
                to.Send(new SecureTradeEquip(m_To.Container, to));
            }

            to.Send(new DisplaySecureTrade(from, m_To.Container, m_From.Container, from.Name));
            to.Send(new UpdateSecureTrade(m_To.Container, false, false));

            if (to.Account != null && to704565)
            {
                to.Send(new UpdateSecureTrade(m_To.Container, TradeFlag.UpdateLedger, to.Account.TotalGold, to.Account.TotalPlat));
            }
        }