Esempio n. 1
0
    static int Main()
    {
        Planner.Application app;
        Project             project;
        List tasks, resources;

        // GtkSharp.Libplanner.ObjectManager.Initialize ();

        Gtk.Application.Init();

        app     = new Planner.Application();
        project = new Project(app);

        //project.Loaded += Project_Loaded;

        project.Load("../../examples/project-x.mrproject");

        tasks     = project.AllTasks;
        resources = project.Resources;

        foreach (Task task in project.AllTasks)
        {
            Console.WriteLine("Task name: " + task.Name);
        }

        foreach (Resource resource in project.Resources)
        {
            Console.WriteLine("Resource name: " + resource.Name);
        }

        return(0);
    }
Esempio n. 2
0
        static int Main() {
                Planner.Application app;
                Project project;
                List  tasks, resources;

		// GtkSharp.Libplanner.ObjectManager.Initialize ();

		Gtk.Application.Init ();

                app = new Planner.Application();
                project = new Project (app);

		//project.Loaded += Project_Loaded;
		
                project.Load ("../../examples/project-x.mrproject");

                tasks = project.AllTasks;
                resources = project.Resources;

		foreach (Task task in project.AllTasks) {
		    Console.WriteLine ("Task name: "+ task.Name);
		}
		
                foreach (Resource resource in project.Resources) {
                  Console.WriteLine ("Resource name: "+ resource.Name);
                }
                
                return 0;
        }
Esempio n. 3
0
    static int Main()
    {
        Planner.Application app;
        Task task;

        Gtk.Application.Init();
        GtkSharp.Libplanner.ObjectManager.Initialize();

        app = new Planner.Application();

        task = new Task();
        Console.WriteLine(task.Start);
        Console.WriteLine("Planner here");
        return(0);
    }