Esempio n. 1
0
        internal void UpdateFileLoadStatus(XmlFileInfo file, XmlFileLoadState state)
        {
            Contract.Requires(file != null);

            lock (XmlFileLoadStatus)
                XmlFileLoadStatus[file] = state;

            var handler = XmlFileLoadStateChanged;

            if (handler != null)
            {
                var args = new XmlFileLoadStateChangedArgs(file, state);
                handler(this, args);
            }
        }
Esempio n. 2
0
 public XmlFileLoadStateChangedArgs(XmlFileInfo xmlFile, XmlFileLoadState newState)
 {
     XmlFile  = xmlFile;
     NewState = newState;
 }