Пример #1
0
        private void LoadProject()
        {
            // clear any existing converter
            Converter = null;

            if (null == Project)
            {
                return;
            }

            Trace("loading project '{0}' ...", Project.Name);

            if(null == OutputDirectory)
            {
                Warning("output directory is not set.");
            }

            using (_report = new ConverterReport())
            {
                Trace("load master project '{0}' ...", Project.Name);

                // clear collection of source directories
                _sourcedirectories.Clear();

                if (null == Project.XAMLSource)
                {
                    ConverterReport.Warning("[XOZXWDT5TD] XAML source is not set.");
                }

                // convert the main XAML source ...
                LoadXaml();

                GenerateResourceAssembly();
            }
        }
Пример #2
0
 public ConverterReport()
 {
     _previous = _current.Value;
     _current.Value = this;
 }