Ejemplo n.º 1
0
        public void CalculateCompleted(object state)
        {
            MatMulCompletedEventArgs e = state as MatMulCompletedEventArgs;


            OnMatMulCalculatorCompleted(e);
        }
Ejemplo n.º 2
0
        void Completion(double[,] mat, Exception ex, bool cancelled, AsyncOperation ao)
        {
            if (!cancelled)
            {
                lock (userStateToLifetime.SyncRoot)
                {
                    userStateToLifetime.Remove(ao.UserSuppliedState);
                }
            }

            MatMulCompletedEventArgs e = new MatMulCompletedEventArgs(mat, ex, cancelled, ao.UserSuppliedState);

            ao.PostOperationCompleted(onCompletedCallback, e);
        }
Ejemplo n.º 3
0
        protected void OnMatMulCalculatorCompleted(MatMulCompletedEventArgs e)
        {
            //Console.WriteLine("Tak");
            try
            {
                foreach (var item in e.matrix)
                {
                    Console.WriteLine(item);
                }
            }
            catch (Exception)
            {
                return;
            }

            if (MatMulCompleted != null)
            {
                MatMulCompleted(this, e);
            }
        }