コード例 #1
0
 private void SetPermissions(FTPUserPermission perm)
 {
     cbRDelete.Checked     = perm.Delete;
     cbRListhidden.Checked = perm.ListHidden;
     cbRRename.Checked     = perm.Rename;
     cbRUpload.Checked     = perm.Upload;
 }
コード例 #2
0
        private FTPUserPermission SetPermissions()
        {
            FTPUserPermission ret = new FTPUserPermission();

            ret.Upload     = cbRUpload.Checked;
            ret.Rename     = cbRRename.Checked;
            ret.ListHidden = cbRListhidden.Checked;
            ret.Delete     = cbRDelete.Checked;
            return(ret);
        }