Changeset 149


Ignore:
Timestamp:
03/08/08 13:08:32 (7 years ago)
Author:
lowjoel
Message:

Added actual task adding. The Executor variable in MainForm? should be changed depending on type of program (client, direct, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/MainForm.cs

    r141 r149  
    77using System.Text; 
    88using System.Windows.Forms; 
     9using Eraser.Manager; 
    910 
    1011namespace Eraser 
     
    2223        private SchedulerPanel SchedulerPage = new SchedulerPanel(); 
    2324        private SettingsPanel SettingsPage = new SettingsPanel(); 
     25 
     26        private Executor eraserClient = new DirectExecutor(); 
    2427 
    2528        public MainForm() 
     
    191194            { 
    192195                if (form.ShowDialog() == DialogResult.OK) 
    193                     SchedulerPage.AddTask(form.Task); 
     196                { 
     197                    Task task = form.Task; 
     198                    SchedulerPage.AddTask(task); 
     199                    eraserClient.AddTask(ref task); 
     200                } 
    194201            } 
    195202        } 
Note: See TracChangeset for help on using the changeset viewer.