Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Bug in get Task.Project property
posted

This seems like a bug to me.  The docs say the Task Project propery sets or gets the project associated with the task.   Other code I have shows that the set property works,  but this shows that the get does not

Create a new Windows Froms c# project, then put an UltraCalendarInfo on the form an use this code for your Form1.cs    The last assert demonstrates the bug.

 

using

 

 

System;

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

using

 

 

System.Collections.Generic;

using System.ComponentModel;

using

 

 

System.Data;

using

 

 

System.Drawing;

using

 

 

System.Linq;

using

 

 

System.Text;

using

 

 

System.Windows.Forms;

using

 

 

System;

using

 

 

Infragistics.Win.UltraWinSchedule;

using

 

 

Infragistics.Shared;

using

 

 

System.Diagnostics; // for Debug

namespace

 

 

 

WindowsFormsApplication4

{

 

 

 

public partial class Form1 :

Form

{

 

 

 

public

Form1()

{

InitializeComponent();

 

 

 

Project p = this.ultraCalendarInfo1.Projects.Add("FirstProject", DateTime.Today);

 

 

 

Debug.Assert(null != p);

 

 

 

Task t = new Task();

t.Project = p;

 

 

Debug.Assert(null != p);

 

 

 

Debug.Assert(null != t.Project); // this assert will fail

 

}

}

}