Example #1
0
        /// <summary>
        /// Called when element of the matrix is changed.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="MatrixEventArgs{T}"/> instance containing the event data.</param>
        protected virtual void OnElementChanged(object sender, MatrixEventArgs <T> e)
        {
            EventHandler <MatrixEventArgs <T> > temp = ElementChanged;

            temp?.Invoke(sender, e);
        }
        /// <summary>
        /// Called when [element changed].
        /// </summary>
        /// <param name="i">The i.</param>
        /// <param name="j">The j.</param>
        private void OnElementChanged(int i, int j)
        {
            MatrixEventArgs e = new MatrixEventArgs(i, j);

            this.ElementChanged?.Invoke(this, e);
        }