void ReleaseDesignerOutlets()
        {
            if (CounterCCY != null)
            {
                CounterCCY.Dispose();
                CounterCCY = null;
            }

            if (CurrencyPair != null)
            {
                CurrencyPair.Dispose();
                CurrencyPair = null;
            }

            if (Direction != null)
            {
                Direction.Dispose();
                Direction = null;
            }

            if (DirectionAmount != null)
            {
                DirectionAmount.Dispose();
                DirectionAmount = null;
            }

            if (DirectionCCY != null)
            {
                DirectionCCY.Dispose();
                DirectionCCY = null;
            }

            if (DoneButton != null)
            {
                DoneButton.Dispose();
                DoneButton = null;
            }

            if (Rate != null)
            {
                Rate.Dispose();
                Rate = null;
            }

            if (ValueDate != null)
            {
                ValueDate.Dispose();
                ValueDate = null;
            }

            if (TradeId != null)
            {
                TradeId.Dispose();
                TradeId = null;
            }

            if (TraderId != null)
            {
                TraderId.Dispose();
                TraderId = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (Activity != null)
     {
         Activity.Dispose();
         Activity = null;
     }
     if (CurrencyPair != null)
     {
         CurrencyPair.Dispose();
         CurrencyPair = null;
     }
     if (Executing != null)
     {
         Executing.Dispose();
         Executing = null;
     }
     if (LeftSideAction != null)
     {
         LeftSideAction.Dispose();
         LeftSideAction = null;
     }
     if (LeftSideBigNumber != null)
     {
         LeftSideBigNumber.Dispose();
         LeftSideBigNumber = null;
     }
     if (LeftSideButton != null)
     {
         LeftSideButton.Dispose();
         LeftSideButton = null;
     }
     if (LeftSideNumber != null)
     {
         LeftSideNumber.Dispose();
         LeftSideNumber = null;
     }
     if (LeftSidePips != null)
     {
         LeftSidePips.Dispose();
         LeftSidePips = null;
     }
     if (Notional != null)
     {
         Notional.Dispose();
         Notional = null;
     }
     if (NotionalCCY != null)
     {
         NotionalCCY.Dispose();
         NotionalCCY = null;
     }
     if (PriceMovementDown != null)
     {
         PriceMovementDown.Dispose();
         PriceMovementDown = null;
     }
     if (PriceMovementUp != null)
     {
         PriceMovementUp.Dispose();
         PriceMovementUp = null;
     }
     if (RightSideAction != null)
     {
         RightSideAction.Dispose();
         RightSideAction = null;
     }
     if (RightSideBigNumber != null)
     {
         RightSideBigNumber.Dispose();
         RightSideBigNumber = null;
     }
     if (RightSideButton != null)
     {
         RightSideButton.Dispose();
         RightSideButton = null;
     }
     if (RightSideNumber != null)
     {
         RightSideNumber.Dispose();
         RightSideNumber = null;
     }
     if (RightSidePips != null)
     {
         RightSidePips.Dispose();
         RightSidePips = null;
     }
     if (SpotDate != null)
     {
         SpotDate.Dispose();
         SpotDate = null;
     }
     if (Spread != null)
     {
         Spread.Dispose();
         Spread = null;
     }
 }