protected override void Dispose(bool isManaged)
        {
            if (!isManaged)
                return;

            vm = null;
            DataContext = null;
        }
Example #2
0
        protected override void Dispose(bool isManaged)
        {
            if (!isManaged)
            {
                return;
            }

            vm          = null;
            DataContext = null;
        }
Example #3
0
        /// <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);
            }
        }
        /// <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);
            }
        }