- Timestamp:
- 02/12/09 14:05:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Server/ServerForm.cs
r1060 r1216 49 49 private static readonly string rdfFile = AppDomain.CurrentDomain.BaseDirectory + "rdf_store.db3"; 50 50 private static readonly string rdfConnectionString = "sqlite:rdf:Data Source=\"" + rdfFile + "\""; 51 51 52 52 public ServerForm() { 53 53 InitializeComponent(); … … 56 56 server.Start(); 57 57 addressTextBox.Text = server.CedmaServiceUrl; 58 dispatcher = new Dispatcher(store);59 dispatcher.Start();60 58 } 61 59 62 60 private void refreshTimer_Tick(object sender, EventArgs e) { 63 listBox.DataSource = dispatcher.DispatchQueue;61 listBox.DataSource = executer.GetJobs(); 64 62 } 65 63 66 64 private void connectButton_Click(object sender, EventArgs e) { 65 dispatcher = new Dispatcher(store); 66 dispatcher.Start(); 67 67 executer = new Executer(dispatcher, store, gridAddress.Text); 68 68 executer.Start(); 69 maxActiveJobsUpDown.Enabled = true; 70 maxActiveJobsUpDown.Value = executer.MaxActiveJobs; 69 71 connectButton.Enabled = false; 72 refreshTimer.Start(); 73 } 74 75 private void maxActiveJobsUpDown_ValueChanged(object sender, EventArgs e) { 76 executer.MaxActiveJobs = Convert.ToInt32(maxActiveJobsUpDown.Value); 70 77 } 71 78 }
Note: See TracChangeset
for help on using the changeset viewer.