le_lukasz

Untitled

Apr 8th, 2021
355
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8.  
  9. namespace Memory
  10. {
  11.     public class MemoryCard : Label
  12.     {
  13.         public Guid id;
  14.         public Image tyl;
  15.         public Image obrazek;
  16.  
  17.         public MemoryCard(Guid id, string tylPath, string obrazekPath)
  18.         {
  19.             this.id = id;
  20.             tyl = Image.FromFile(tylPath);
  21.             obrazek = Image.FromFile(obrazekPath);
  22.         }
  23.  
  24.         public void Zakryj()
  25.         {
  26.             BackgroundImage = tyl;
  27.             Enabled = true;
  28.         }
  29.         public void Odkryj()
  30.         {
  31.             BackgroundImage = obrazek;
  32.             Enabled = false;
  33.         }
  34.     }
  35. }
  36.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×