protected override void Dispose(bool isManaged) { if (!isManaged) return; vm = null; DataContext = null; }
protected override void Dispose(bool isManaged) { if (!isManaged) { return; } vm = null; DataContext = null; }
/// <summary> /// Initializes a new instance of the <see cref="GeneralChannelView" /> class. /// </summary> /// <param name="vm"> /// The vm. /// </param> public GeneralChannelView(GeneralChannelViewModel vm) { try { InitializeComponent(); this.vm = vm.ThrowIfNull("vm"); DataContext = this.vm; } catch (Exception ex) { ex.Source = "General Channel View, init"; Exceptions.HandleException(ex); } }