Beispiel #1
0
 public static PaletteForm GetInstance()
 {
     if (_instance == null)
     {
         lock (_locker)
         {
             if (_instance == null)
             {
                 _instance = new PaletteForm();
             }
         }
     }
     return(_instance);
 }
Beispiel #2
0
 private void PaletteForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _instance = null;
 }