Beispiel #1
0
        private void buttonConfigureFtp_Click(object sender, System.EventArgs e)
        {
            DialogResult result = FTPSettingsForm.ShowFTPSettingsForm(FindForm(), TemporaryBlogSettings);

            if (result == DialogResult.OK)
            {
                TemporaryBlogSettingsModified = true;
            }
        }
 public static bool EditFtpImageUpload(IWin32Window owner, string id)
 {
     using (BlogSettings blogSettings = BlogSettings.ForBlogId(id))
     {
         DialogResult result = FTPSettingsForm.ShowFTPSettingsForm(owner, blogSettings);
         if (result == DialogResult.OK)
         {
             blogSettings.FileUploadSupport = FileUploadSupport.FTP;
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }