Пример #1
0
 public static Draw getInstance(PictureBox pictureBox)
 {
     if (instance == null) instance = new Draw(pictureBox);
     return instance;
 }
Пример #2
0
 public MainForm()
 {
     InitializeComponent();
     control = Controller.getInstance();
     draw = Draw.getInstance(pictureBox);
 }