Beispiel #1
0
 public static MainForm GetInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         lock (syncRoot)
         {
             if (instance == null || instance.IsDisposed)
                 instance = new MainForm();
         }
     }
     return instance;
 }
 public RealmManagerForm(MainForm mainForm)
 {
     InitializeComponent();
     this.mainForm = mainForm;
 }