Beispiel #1
0
        public void DownloadFile(string FileName)
        {
            string           SaveDirectory = StorageConfiguration.GetSaveDirectory();
            string           sourceFile    = FolderPath + '/' + FileName;
            FtpDownloadAgent downloadAgent = new FtpDownloadAgent(SaveDirectory, sourceFile);

            downloadAgent.TransferFile();
        }
        public MainWindow()
        {
            InitializeComponent();
            mainList      = (ListBox)this.FindName("MainList");
            mainListTitle = (ListBox)this.FindName("MainListTitle");
            saveDirectory = (TextBlock)this.FindName("SaveDirectory");
            Configuration = new StorageConfiguration();
            string currentSave = StorageConfiguration.GetSaveDirectory();

            saveDirectory.Text = $"Save Folder: {currentSave}";
            Label            connectionStatus = (Label)this.FindName("ConnectionStatusLabel");
            ConnectionStatus status           = new ConnectionStatus(connectionStatus);
        }
        private void OpenSaveFolderClick(object sender, RoutedEventArgs e)
        {
            string currentSave = StorageConfiguration.GetSaveDirectory();

            Process.Start(currentSave);
        }