コード例 #1
0
 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;
     }
 }
コード例 #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;
            }
        }