go Posts 1090
|
Like filling the Appointments collection for items loading, you have to fill Resources collection: Something like following:
foreach (AppsDataSet.ResourcesRow row in ds.Resources.Rows) calendar.Resources.Add(createFrom(row));
Resource createFrom(AppsDataSet.ResourcesRow row) { Resource r = new Resource(); // r.Text = row.Text; r.BackColor = Color.FromArgb(row.BackColor); r.Tag = r;
return r; }
|