1

Closed

Project templates are not running

description

The class SmartCode.Studio.GenerationDlg has a bug in the following method:
 
    private void uiLVProjectTemplates_ItemCheck(object sender, ItemCheckEventArgs e)
    {
        ListViewItem li = this.uiLVProjectTemplates.Items[e.Index];
        TemplateInfo template = li.Tag as TemplateInfo;
        if (template != null)
        {
            template.Run = e.CurrentValue == CheckState.Checked;
        }
    }
 
The Run boolean is determined from the current value rather than the new value. The line should be:
 
            template.Run = e.NewValue == CheckState.Checked;
Closed May 24, 2007 at 4:47 PM by kontac
Done

comments