Changeset 922
- Timestamp:
- 4/29/2009 9:23:39 AM (4 years ago)
- Location:
- branches/eraser6
- Files:
-
- 3 edited
-
Eraser/ToolBar.cs (modified) (4 diffs)
-
Eraser/UpdateForm.cs (modified) (2 diffs)
-
Manager/RemoteExecutor.cs (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Eraser/ToolBar.cs
r918 r922 40 40 41 41 //Initialize the toolbar item list 42 Items = new Tool barItemCollection(this);42 Items = new ToolBarItemCollection(this); 43 43 44 44 //Hook mouse move events to show the currently selected item … … 172 172 /// Stores the items in the Tool Bar. 173 173 /// </summary> 174 public Tool barItemCollection Items174 public ToolBarItemCollection Items 175 175 { 176 176 get; … … 270 270 } 271 271 272 public class Tool barItemCollection : ICollection<ToolBarItem>, IList<ToolBarItem>,272 public class ToolBarItemCollection : ICollection<ToolBarItem>, IList<ToolBarItem>, 273 273 IEnumerable<ToolBarItem> 274 274 { … … 277 277 /// </summary> 278 278 /// <param name="win">The owning toolbar window.</param> 279 internal Tool barItemCollection(ToolBar win)279 internal ToolBarItemCollection(ToolBar win) 280 280 { 281 281 window = win; -
branches/eraser6/Eraser/UpdateForm.cs
r918 r922 960 960 public IEnumerator<KeyValuePair<string, UpdateList>> GetEnumerator() 961 961 { 962 throw new NotImplementedException();962 return dictionary.GetEnumerator(); 963 963 } 964 964 #endregion … … 967 967 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() 968 968 { 969 throw new NotImplementedException();969 return GetEnumerator(); 970 970 } 971 971 #endregion -
branches/eraser6/Manager/RemoteExecutor.cs
r905 r922 222 222 // void \+ task 223 223 case RemoteRequest.Function.CANCEL_TASK: 224 CancelTask((Task)parameter);224 UnqueueTask((Task)parameter); 225 225 break; 226 226 … … 230 230 break; 231 231 232 / / void \+ task232 /*// void \+ task 233 233 case RemoteRequest.Function.REPLACE_TASK: 234 234 ReplaceTask((Task)parameter); … … 271 271 case RemoteRequest.Function.GET_TASKS: 272 272 returnValue = GetTasks(); 273 break; 273 break;*/ 274 274 275 275 // void \+ void … … 369 369 } 370 370 371 public override bool DeleteTask(uint taskId)371 /*public override bool DeleteTask(uint taskId) 372 372 { 373 373 MemoryStream mStream = new MemoryStream(); … … 377 377 } 378 378 379 public override ICollection<Task> GetTasks()380 {381 MemoryStream mStream = new MemoryStream();382 new BinaryFormatter().Serialize(mStream, null);383 return (List<Task>)SendRequest(new RemoteRequest(RemoteRequest.Function.GET_TASKS,384 mStream.GetBuffer()));385 }386 387 379 public override Task GetTask(uint taskId) 388 380 { … … 407 399 SendRequest(new RemoteRequest(RemoteRequest.Function.ADD_TASK, 408 400 mStream.GetBuffer())); 409 } 410 411 public override void CancelTask(Task task)401 }*/ 402 403 public override void UnqueueTask(Task task) 412 404 { 413 405 MemoryStream mStream = new MemoryStream(); … … 433 425 } 434 426 435 public override void ReplaceTask(Task task)427 /*public override void ReplaceTask(Task task) 436 428 { 437 429 MemoryStream mStream = new MemoryStream(); … … 439 431 SendRequest(new RemoteRequest(RemoteRequest.Function.REPLACE_TASK, 440 432 mStream.GetBuffer())); 441 } 433 }*/ 442 434 443 435 public override void Run() … … 453 445 } 454 446 455 public override void SaveTaskList(Stream stream)447 /*public override void SaveTaskList(Stream stream) 456 448 { 457 449 MemoryStream mStream = new MemoryStream(); … … 459 451 SendRequest(new RemoteRequest(RemoteRequest.Function.SAVE_TASK_LIST, 460 452 mStream.GetBuffer())); 453 }*/ 454 455 public override ExecutorTasksCollection Tasks 456 { 457 get 458 { 459 throw new NotImplementedException(); 460 /*MemoryStream mStream = new MemoryStream(); 461 new BinaryFormatter().Serialize(mStream, null); 462 return (List<Task>)SendRequest(new RemoteRequest(RemoteRequest.Function.GET_TASKS, 463 mStream.GetBuffer()));*/ 464 } 465 protected set 466 { 467 throw new NotImplementedException(); 468 } 461 469 } 462 470 }
Note: See TracChangeset
for help on using the changeset viewer.
