Esempio n. 1
0
    private void retrieveRemoteFile()
    {
      XmlTvImporter importer = new XmlTvImporter();
      importer.RetrieveRemoteFile(textBoxFolder.Text, txtRemoteURL.Text);

      TvBusinessLayer layer = new TvBusinessLayer();

      lblLastTransferAt.Text = layer.GetSetting("xmlTvRemoteScheduleLastTransfer", "").Value;
      lblTransferStatus.Text = layer.GetSetting("xmlTvRemoteScheduleTransferStatus", "").Value;
    }
Esempio n. 2
0
    private void buttonManualImport_Click(object sender, EventArgs e)
    {
      XmlTvImporter importer = new XmlTvImporter();

      string folder = textBoxFolder.Text;
      bool importXml = cbImportXML.Checked;
      bool importLst = cbImportLST.Checked;

      importer.ForceImport(folder, importXml, importLst);

      TvBusinessLayer layer = new TvBusinessLayer();
      labelLastImport.Text = layer.GetSetting("xmlTvResultLastImport", "").Value;
      labelChannels.Text = layer.GetSetting("xmlTvResultChannels", "").Value;
      labelPrograms.Text = layer.GetSetting("xmlTvResultPrograms", "").Value;
      labelStatus.Text = layer.GetSetting("xmlTvResultStatus", "").Value;
    }