private static BOLSingleton Instance() { if (instance == null) { instance = new BOLSingleton(); } return(instance); }
public static BOLSingleton getInstance(string username, string password) { if (!username.Equals("") && !password.Equals("")) { BOLSingleton.username = username; BOLSingleton.password = password; return(BOLSingleton.Instance()); } else { throw new Exception("Username and Password cannot be '' or null!"); } }
public static BOLSingleton getInstance() { return(BOLSingleton.getInstance(BOLSingleton.username, BOLSingleton.password)); }