예제 #1
0
 public static void GetProject(int id, EventHandler <DataPortalResult <ProjectEdit> > callback)
 {
     ProjectGetter.GetExistingProject(id, (o, e) =>
     {
         callback(o, new DataPortalResult <ProjectEdit>(e.Object.Project, e.Error, null));
     });
 }
예제 #2
0
 public static void NewProject(EventHandler <DataPortalResult <ProjectEdit> > callback)
 {
     ProjectGetter.CreateNewProject((o, e) =>
     {
         callback(o, new DataPortalResult <ProjectEdit>(e.Object.Project, e.Error, null));
     });
 }