private void m_nodeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (null != m_view) { m_view.StatusChanged -= m_view_StatusChanged; m_view.Dispose(); m_view = null; } NodeModel node = m_nodeComboBox.SelectedItem as NodeModel; if (null != node) { m_errors.Text = ""; using (var result = m_session.OpenFileTransferStatusView(new Oid(node.Id))) { if (result.IsSuccess) { lock (result.Value) { m_view = result.Value; SyncView(); m_view.StatusChanged += m_view_StatusChanged; } } else { m_errors.Text = result.ToString(); } } } }