示例#1
0
        public static void PackerChangeVolCallback(PackerChangeVolEventArgs e)
        {
            if (changeVolCallbackW != null || changeVolCallback != null)
            {
                string arcName = e.ArcName;
                int    mode    = e.Mode;

                if (changeVolCallbackW != null)
                {
                    e.Result = changeVolCallbackW(arcName, mode);
                }
                else if (changeVolCallback != null)
                {
                    e.Result = changeVolCallback(arcName, mode);
                }
#if TRACE
                TraceOut(TraceLevel.Verbose, $"OnChangeVol ({arcName}, {mode}) - {e.Result}.", Callback);
#endif
            }
        }
示例#2
0
        public static void PackerChangeVolCallback(PackerChangeVolEventArgs e)
        {
            if (changeVolCallbackW != null || changeVolCallback != null)
            {
                string arcName = e.ArcName;
                int    mode    = e.Mode;

                if (changeVolCallbackW != null)
                {
                    e.Result = changeVolCallbackW(arcName, mode);
                }
                else if (changeVolCallback != null)
                {
                    e.Result = changeVolCallback(arcName, mode);
                }
#if TRACE
                TraceOut(TraceLevel.Verbose,
                         String.Format("OnChangeVol ({0}, {1}) - {2}.", arcName, mode, e.Result), TraceMsg1);
#endif
            }
        }