public static void RegisterGetPreferences(ICheckLogin loginService) { SimpleIoc.Default.Register(() => loginService); }