This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1 | |
public abstract class ViewModelBase<T> : ReactiveObject, IDisposable where T : ReactiveObject, IDisposable | |
{ | |
// 2 | |
protected readonly Lazy<CompositeDisposable> ViewModelBindings = new Lazy<CompositeDisposable>(() => new CompositeDisposable()); | |
// 3 | |
public bool IsDisposed { get; private set; } | |
bool _bindingsRegistered; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MonoDroid] System.Exception: An OnError occurred on an object (usually ObservableAsPropertyHelper) that would break a binding or command. To prevent this, Subscribe to the ThrownExceptions property of your objects ---> Java.Lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer | |
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0 | |
[MonoDroid] at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <438784097c4b4b56a7da6ca9301bc3c6>:0 | |
[MonoDroid] at Android.Runtime.JNIEnv.CallIntMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x00000] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.g.cs:192 | |
[MonoDroid] at Android.Content.ISharedPreferencesInvoker.GetInt (System.String key, Syst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="FluentValidation" version="6.2.1.0" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="portable-net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarintvos10+xamarinwatchos10+xamarinios10" /> | |
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="NETStandard.Library" version="1.6.1" targetFramework="portable45-net45+win8+wp8" /> | |
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable45-net45+win8+wp8" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="MonoAndroid60" /> | |
<package id="Plugin.CurrentActivity" version="1.0.1" targetFramework="monoandroid70" /> | |
<package id="Plugin.Share" version="5.0.0" targetFramework="monoandroid60" /> | |
<package id="reactiveui" version="7.1.0" targetFramework="monoandroid60" /> | |
<package id="reactiveui-androidsupport" version="7.1.0" targetFramework="monoandroid60" /> | |
<package id="reactiveui-core" version="7.1.0" targetFramework="monoandroid60" /> | |
<package id="reactiveui-xamforms" version="7.1.0" targetFramework="monoandroid60" /> | |
<package id="Rg.Plugins.Popup" version="1.0.4" targetFramework="monoandroid60" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="xamarinios10" /> | |
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="xamarinios10" /> | |
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="xamarinios10" /> | |
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="xamarinios10" /> | |
<package id="Plugin.Share" version="5.0.0" targetFramework="xamarinios10" /> | |
<package id="reactiveui-core" version="7.1.0" targetFramework="xamarinios10" /> | |
<package id="reactiveui-xamforms" version="7.1.0" targetFramework="xamarinios10" /> | |
<package id="Rg.Plugins.Popup" version="1.0.4" targetFramework="xamarinios10" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[art] Not late-enabling -Xcheck:jni (already on) | |
[art] Late-enabling JIT | |
[art] JIT created with code_cache_capacity=2MB compile_threshold=1000 | |
[monodroid] Using override path: /data/user/0/com.wisconsinrealtors.wramobile/files/.__override__ | |
[monodroid] Using override path: /storage/1CEC-271C/Android/data/com.wisconsinrealtors.wramobile/files/.__override__ | |
[monodroid] Trying to load sgen from: /data/user/0/com.wisconsinrealtors.wramobile/files/.__override__/libmonosgen-2.0.so | |
[monodroid] Trying to load sgen from: /storage/1CEC-271C/Android/data/com.wisconsinrealtors.wramobile/files/.__override__/libmonosgen-2.0.so | |
[monodroid] Trying to load sgen from: /data/app/com.wisconsinrealtors.wramobile-1/lib/arm/libmonosgen-2.0.so | |
[monodroid] Trying to load sgen from: /data/user/0/com.wisconsinrealtors.wramobile/files/.__override__/links/libmonosgen-2.0.so | |
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=10.0.2.2:55476,embedding=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static func evaluateMemberStatusNotifications() { | |
let userDefaults = Global.app.userDefaults | |
let localNotification: UILocalNotification = UILocalNotification() | |
print("evaluating profile notifications") | |
// is the user active? if so no notification | |
let isActive : Bool = userDefaults.valueForKey("ActiveMember") as! Bool // false == inactive | |
print("is the user active?") | |
if !isActive { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - Core Data stack | |
lazy var applicationDocumentsDirectory: NSURL = { | |
// The directory the application uses to store the Core Data store file. This code uses a directory named "com.codebeaulieu.CoreDataSwift2" in the application's documents Application Support directory. | |
let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask) | |
return urls[urls.count-1] | |
}() | |
lazy var managedObjectModel: NSManagedObjectModel = { | |
// The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BlogEngineRepository<T> : IRepository<T> where T : class | |
{ | |
protected DbSet<T> DbSet; | |
public BlogEngineRepository(DbContext dataContext) | |
{ | |
DbSet = dataContext.Set<T>(); | |
} | |
#region IRepository<T> Members |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func handleTap(sender: UITapGestureRecognizer? = nil) { | |
// just creating an alert to prove our tap worked! | |
let tapAlert = UIAlertController(title: "hmmm...", message: "this actually worked?", preferredStyle: UIAlertControllerStyle.Alert) | |
tapAlert.addAction(UIAlertAction(title: "OK", style: .Destructive, handler: nil)) | |
self.presentViewController(tapAlert, animated: true, completion: nil) | |
} |