Esempio n. 1
0
        public void SetGraph(Bitmap src)
        {
            if (mIntPtr != IntPtr.Zero)
            {
                BitmapSourceFactory.DeleteObject(mIntPtr);
            }

            amImage.Source = BitmapSourceFactory.GetBitmapSource(src, out mIntPtr);
        }
Esempio n. 2
0
        public void DoStepLink()
        {
            if (mStepNum < mStepBmp.Count)
            {
                if (mIntPtr != IntPtr.Zero)
                {
                    BitmapSourceFactory.DeleteObject(mIntPtr);
                }

                CentralShow(BitmapSourceFactory.GetBitmapSource(mStepBmp[mStepNum], out mIntPtr), 0);
                Timer t = new Timer();
                t.Interval  = mStepInterval[mStepNum];
                t.AutoReset = false;
                t.Enabled   = true;
                t.Elapsed  += new ElapsedEventHandler(timeTrigger);
                mStepNum++;
            }
            else
            {
                mFinFunc();
            }
        }