private void rdoMonth_CheckedChanged(object sender, EventArgs e) { if (rdoMonth.Checked) { TaskPlanMonthCtrl ctrl = new TaskPlanMonthCtrl(); ctrl.Name = "TaskPlanCtrl"; if (_TaskEntity != null && _TaskEntity.CycleType == CycleTypes.M) { CronExpressionEntity cronExp = QuartzHelper.ResolveCronExpression(_TaskEntity.Cron); ctrl.CronExpressionEntity = cronExp; } pnlPlan.Controls.Clear(); pnlPlan.Controls.Add(ctrl); } }