Exemplo n.º 1
0
 public void Unload()
 {
     Debug.Assert(_app != null, "Layer isn't initialized.");
     OnUnload();
     _app = null;
 }
Exemplo n.º 2
0
 public void Initialize(GraphicalAppBase app)
 {
     Debug.Assert(_app == null, "Layer is already initialized.");
     _app = app ?? throw new ArgumentNullException(nameof(app));
     OnInit();
 }