Exemplo n.º 1
0
 public void SetActivatedLayout(StandardLayout layout)
 {
     ActivatedLayout?.Deactivate();
     ActivatedLayout = layout;
     ActivatedLayout.Activate();
     PaintAgent.CurrentLayout = ActivatedLayout;
     PaintingTexture.CopyTo(PaintingTextureBackup);
     ActivatedLayoutChanged?.Invoke();
 }
Exemplo n.º 2
0
 public void SetActivatedLayout(int layoutIndex)
 {
     ActivatedLayout?.Deactivate();
     if (layoutIndex == -1)
     {
         ActivatedLayout          = null;
         PaintAgent.CurrentLayout = null;
         return;
     }
     ActivatedLayout = (StandardLayout)Layouts[layoutIndex];
     ActivatedLayout.Activate();
     PaintAgent.CurrentLayout = ActivatedLayout;
     PaintingTexture.CopyTo(PaintingTextureBackup);
     ActivatedLayoutChanged?.Invoke();
 }