Example #1
0
        public static Wz_Node FindWz(string fullPath, Wz_File sourceWzFile)
        {
            FindWzEventArgs e = new FindWzEventArgs()
            {
                FullPath = fullPath, WzFile = sourceWzFile
            };

            if (WzFileFinding != null)
            {
                WzFileFinding(null, e);
                if (e.WzNode != null)
                {
                    return(e.WzNode);
                }
                if (e.WzFile != null)
                {
                    return(e.WzFile.Node);
                }
            }
            return(null);
        }
Example #2
0
        public static Wz_Node FindWz(Wz_Type type, Wz_File sourceWzFile)
        {
            FindWzEventArgs e = new FindWzEventArgs(type)
            {
                WzFile = sourceWzFile
            };

            if (WzFileFinding != null)
            {
                WzFileFinding(null, e);
                if (e.WzNode != null)
                {
                    return(e.WzNode);
                }
                if (e.WzFile != null)
                {
                    return(e.WzFile.Node);
                }
            }
            return(null);
        }