public CapsApplication() { if (Singleton == null) { Singleton = this; } else { throw new System.Exception(); //if singleton exist, throw a Exception } } #endregion