Esempio n. 1
0
 private void StartNewEditorIfEntityFound(Vector2D position)
 {
     foreach (
         Entity2D entity in entities.Where(entity => entity.RotatedDrawAreaContains(position)))
         if (EditorMode == EditorMode.Read)
             ActiveEditor = new EntityReader(entity);
         else
             // Can't test this with ncrunch as pausing time can mess up other tests at random
             ActiveEditor = new EntityWriter(entity); // ncrunch: no coverage
 }
Esempio n. 2
0
 private void DisposeOldEditor()
 {
     if (ActiveEditor != null)
         ActiveEditor.Dispose();
     ActiveEditor = null;
 }