private void save_btn_Click(object sender, EventArgs e) { Properties.Settings.Default.WatchDirectory = watchDirectory_dlg.SelectedPath; Properties.Settings.Default.DownloadDirectory = downloadDirectory_dlg.SelectedPath; Properties.Settings.Default.FTPAddress = ftpAddress_txtBox.Text; Properties.Settings.Default.FTPUsername = ftpUsername_txtBox.Text; Properties.Settings.Default.FTPPassword = StringCipher.Encrypt(ftpPassword_txtBox.Text, "TorrentFlow"); Properties.Settings.Default.FTPUploadPath = ftpUploadPath_txtBox.Text; Properties.Settings.Default.FTPDownloadPath = ftpDownloadPath_txtBox.Text; Properties.Settings.Default.FTPDeleteAfterDL = ftpDeleteAfterDL_chkBox.Checked; Properties.Settings.Default.Save(); if (autoStart_ChkBox.Checked) { RegisterStartWithWindows(); } else { UnregisterStartWithWindows(); } TorrentFlow.Initialize(); this.Close(); }
private static void ResumeProgram(object send, EventArgs e) { TorrentFlow.Resume(); }
private static void PauseProgram(object send, EventArgs e) { TorrentFlow.Pause(); }