void ReleaseDesignerOutlets()
 {
     if (_notificationsSwitch != null)
     {
         _notificationsSwitch.Dispose();
         _notificationsSwitch = null;
     }
     if (_scrollView != null)
     {
         _scrollView.Dispose();
         _scrollView = null;
     }
     if (ConnectionDetail != null)
     {
         ConnectionDetail.Dispose();
         ConnectionDetail = null;
     }
     if (ConnectionStatus != null)
     {
         ConnectionStatus.Dispose();
         ConnectionStatus = null;
     }
     if (ServerUpdateRate != null)
     {
         ServerUpdateRate.Dispose();
         ServerUpdateRate = null;
     }
     if (TraderId != null)
     {
         TraderId.Dispose();
         TraderId = null;
     }
     if (UILatency != null)
     {
         UILatency.Dispose();
         UILatency = null;
     }
     if (UIUpdateRate != null)
     {
         UIUpdateRate.Dispose();
         UIUpdateRate = null;
     }
 }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (ConnectionDetail != null)
            {
                ConnectionDetail.Dispose();
                ConnectionDetail = null;
            }

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

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

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

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

            if (UIUpdateRate != null)
            {
                UIUpdateRate.Dispose();
                UIUpdateRate = null;
            }
        }
        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;
            }
        }