Beispiel #1
0
        public void LoadXml(string location, DesignTimeCallback dtc)
        {
            XmlTextReader reader = null;

            this._designTimeCallback = dtc;
            try
            {
                reader = new XmlTextReader(location);
                reader.WhitespaceHandling = WhitespaceHandling.None;
                this.LoadXml(reader);
            }
            finally
            {
                if (reader != null)
                {
                    reader.Close();
                }
                reader = null;
                this._designTimeCallback = null;
            }
        }
Beispiel #2
0
 public void LoadXml(string location, DesignTimeCallback dtc)
 {
     XmlTextReader reader = null;
     this._designTimeCallback = dtc;
     if (this._designTimeCallback != null)
     {
         this._designTimeCallback(4, this);
     }
     try
     {
         reader = new XmlTextReader(location);
         reader.WhitespaceHandling = WhitespaceHandling.None;
         this.LoadXml(reader);
     }
     finally
     {
         if (reader != null)
         {
             reader.Close();
         }
         reader = null;
         this._designTimeCallback = null;
     }
 }