コード例 #1
0
        public bool StopEngine()
        {
            if (SE == null)
            {
                return(false);
            }

            if (!IsSyncEngineStopped)
            {
                IsSyncEngineStopped = true;
                if (SE != null)
                {
                    SE.StopProcessing();             //This will pop a SE_StopComplete event when completed
                }
                else if (EngineStopped != null)
                {
                    EngineStopped(this, null);
                }

                return(true);
            }

            return(false);
        }