Beispiel #1
0
 public ReportThreadWithData(FormMain form,
                             IConverterXmlToHtml conv,
                             string xmlFileIn, string htmlFileOut, string xslString)
 {
     _form        = form;
     _conv        = conv;
     _xmlFileIn   = xmlFileIn;
     _htmlFileOut = htmlFileOut;
     _xslString   = xslString;
     new Thread(new ThreadStart(StartConversionThread)).Start();
 }
Beispiel #2
0
        //delegate void SetProgressBar

        public Controller(FormMain form, IRepository repo, IConverterXmlToHtml conv)
        {
            this._form = form;
            this._repo = repo;
            this._converterXmlTohtml = conv;


            string lastXml = LastSavedXmlFile();

            if (lastXml != "")
            {
                ReadFromXMLFile(lastXml);
            }
            else
            {
                _ecos = new List <Ecologist>();
            }
        }
Beispiel #3
0
        public Controller(FormMain form, IRepository repo, IConverterXmlToHtml conv)
        {
            this._form = form;
            this._repo = repo;
            this._converterXmlTohtml = conv;

            //пробуем загрузить последний проект
            _lastXmlFile = LastSavedXmlFile();
            if (_lastXmlFile != "")
            {
                ReadFromXMLFile(_lastXmlFile);
            }

            if (_ecos != null)
            {
                _form.StatusMessage("Загружено из " + _lastXmlFile);
            }
            else
            {
                StartNewProject();
            }
        }