private void SetPermissions(FTPUserPermission perm) { cbRDelete.Checked = perm.Delete; cbRListhidden.Checked = perm.ListHidden; cbRRename.Checked = perm.Rename; cbRUpload.Checked = perm.Upload; }
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); }