示例#1
0
        private void LadeDifferenzen(ParseTsList filesAufSd, string speicherpfad, string SDQuelle)
        {
            foreach (string filenameAufSD in filesAufSd.listeDateien)
            {
                var test1 = File.Exists(speicherpfad + "\\" + filenameAufSD);
                var test2 = txtImportOrdner.Text.Length > 5 && File.Exists(Properties.Settings.Default.ImportOrdner + "\\" + filenameAufSD);


                if (!test1 && !test2)
                {
                    DownloadeFile(SDQuelle, filenameAufSD, speicherpfad);
                }
            }
        }
示例#2
0
        private void bgwFrageNeueListeAb_DoWork(object sender, DoWorkEventArgs e)
        {
            Random r = new Random();

            var para = new Dictionary <string, string>
            {
                { "PATH", Properties.Settings.Default.QuellRoot + txtQuelleAufSD.Text },
                { "keeprefresh", r.Next(Int32.MaxValue).ToString() }
            };

            Uri adresse = new Uri("http://" + _SelectedIP + "/cgi-bin/tslist");

            var filesAufSD = new ParseTsList(TranscendAutoDownloader.DownloaderClass.GetHttpFile(adresse, para));

            LadeDifferenzen(filesAufSD, txtSpeicherpfad.Text, Properties.Settings.Default.QuellRoot + txtQuelleAufSD.Text);
        }
        private void bgwFrageNeueListeAb_DoWork(object sender, DoWorkEventArgs e)
        {
            Random r = new Random();

            var para = new Dictionary<string, string>
            {
                {"PATH", Properties.Settings.Default.QuellRoot + txtQuelleAufSD.Text},
                {"keeprefresh", r.Next(Int32.MaxValue).ToString()}
            };

            Uri adresse = new Uri("http://" + _SelectedIP + "/cgi-bin/tslist");

            var filesAufSD = new ParseTsList(TranscendAutoDownloader.DownloaderClass.GetHttpFile(adresse, para));

            LadeDifferenzen(filesAufSD, txtSpeicherpfad.Text, Properties.Settings.Default.QuellRoot + txtQuelleAufSD.Text);
        }
示例#4
0
 private void button1_Click(object sender, EventArgs e)
 {
     var t = new ParseTsList("jk");
 }
        private void LadeDifferenzen(ParseTsList filesAufSd, string speicherpfad, string SDQuelle)
        {
            foreach (string filenameAufSD in filesAufSd.listeDateien)
            {
                var test1 = File.Exists(speicherpfad + "\\" + filenameAufSD);
                var test2 = txtImportOrdner.Text.Length > 5 && File.Exists(Properties.Settings.Default.ImportOrdner + "\\" + filenameAufSD);

                if (!test1 && !test2)
                {
                    DownloadeFile(SDQuelle, filenameAufSD, speicherpfad);
                }
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     var t = new ParseTsList("jk");
 }