Beispiel #1
0
        // ::
        public static void Start(string[] fps, TypeTo type, Action<object[]> callBack)
        {
            if (fps == null) return;

            if (_th == null)
            {
                _fps = fps;
                _type = type;
                _callBack = callBack;

                _th = new Thread(new ThreadStart(p_Work));
                _th.Start();
            }
        }
Beispiel #2
0
        // ::
        private static void p_Clear()
        {
            if (_th != null)
            {
                _type = TypeTo.None;
                _callBack = null;
                _fps = null;

                _th = null;
            }
        }