protected void ScheduleRecalculation(ScoreInfo scoreInfo)
    {
        // Validate input
        if (radLater.Checked && !(calendarControl.SelectedDateTime > DateTime.Now))
        {
            ShowError(GetString("om.score.recalculationscheduledinvaliddate"));
            return;
        }

        if (!scoreInfo.CheckPermissions(PermissionsEnum.Modify, CurrentSiteName, CurrentUser))
        {
            RedirectToAccessDenied(scoreInfo.TypeInfo.ModuleName, "modify");
        }

        if (radLater.Checked && (calendarControl.SelectedDateTime > DateTime.Now))
        {
            StartRecalculationLater(scoreInfo);
        }
        else if (radNow.Checked)
        {
            StartRecalculationNow(scoreInfo);
        }

        ScriptHelper.RegisterWOpenerScript(this);
        ScriptHelper.RegisterStartupScript(this, typeof(string), "RefreshPage", ScriptHelper.GetScript("wopener.RefreshPage(); CloseDialog();"));
    }
    protected void ScheduleRecalculation(ScoreInfo scoreInfo)
    {
        // Validate input
        if (radLater.Checked && !(calendarControl.SelectedDateTime > DateTime.Now))
        {
            ShowError(GetString("om.score.recalculationscheduledinvaliddate"));
            return;
        }

        if (!scoreInfo.CheckPermissions(PermissionsEnum.Modify, CurrentSiteName, CurrentUser))
        {
            RedirectToAccessDenied(scoreInfo.TypeInfo.ModuleName, "modify");
        }

        if (radLater.Checked && (calendarControl.SelectedDateTime > DateTime.Now))
        {
            StartRecalculationLater(scoreInfo);
        }
        else if (radNow.Checked)
        {
            StartRecalculationNow(scoreInfo);
        }

        ScriptHelper.RegisterWOpenerScript(this);
        ScriptHelper.RegisterStartupScript(this, typeof(string), "RefreshPage", ScriptHelper.GetScript("wopener.RefreshPage(); CloseDialog();"));
    }