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(); }
//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>(); } }
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(); } }