예제 #1
0
 public void SetActivatedLayout(StandardLayout layout)
 {
     ActivatedLayout?.Deactivate();
     ActivatedLayout = layout;
     ActivatedLayout.Activate();
     PaintAgent.CurrentLayout = ActivatedLayout;
     PaintingTexture.CopyTo(PaintingTextureBackup);
     ActivatedLayoutChanged?.Invoke();
 }
예제 #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();
 }