Check this out:
This is a sample app running the beta of ECO6 for the windows phone with this model:
It also runs the beta of the GTP.NET.SL.PHONE Interactive Gantt control (versions for Silverlight, WPF and now also for Windows Phone).
Being declarative in definition in domain model and in UI leaves very little code to do the actions:
- private void ApplicationBarIconButton_Click(object sender, EventArgs e)
- {
- Resource c1=new Resource(_ecoSpace) { Attribute1 = (_i++).ToString() + "GR" };
- c1.Task.Add(new Task(_ecoSpace)
- { Name = _i.ToString(), Start = DateTime.Now, Stop = DateTime.Now.AddDays(5) });
- c1.Task.Add(new Task(_ecoSpace)
- { Name = "Text" + _i.ToString(), Start = DateTime.Now.AddDays(7), Stop = DateTime.Now.AddDays(13) });
- }
- private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
- {
- if (TheGantt.SelectedTimeItems.Count() > 0)
- {
- (TheGantt.SelectedTimeItems[0].DataContext as Task).Resource.Task.Add(
- new Task(_ecoSpace)
- { Start = TheGantt.DateScaler.StartTime, Stop = TheGantt.DateScaler.StartTime.AddDays(2),Name="Added" });
- }
- }
- }