public override void ViewDidLoad() { base.ViewDidLoad(); bool state = (Manager.Singletone.ftpThread != null && Manager.Singletone.ftpThread.IsAlive); //NSUserDefaults.StandardUserDefaults.BoolForKey("FTPServer"); FTPSwitcher.SetState(state, false); FTPBackgroundSwitcher.SetState(NSUserDefaults.StandardUserDefaults.BoolForKey("FTPServerBackground"), false); }
public override void ViewDidLoad() { base.ViewDidLoad(); bool state = (Manager.Singletone.ftpThread != null && Manager.Singletone.ftpThread.IsAlive); //NSUserDefaults.StandardUserDefaults.BoolForKey("FTPServer"); FTPSwitcher.SetState(state, false); FTPBackgroundSwitcher.SetState(NSUserDefaults.StandardUserDefaults.BoolForKey(UserDefaultsKeys.FTPServerBackground), false); BackgroundEnabler.SetState(NSUserDefaults.StandardUserDefaults.BoolForKey(UserDefaultsKeys.BackgroundModeEnabled), false); DHTSwitcher.SetState(NSUserDefaults.StandardUserDefaults.BoolForKey(UserDefaultsKeys.DHTEnabled), false); BackgroundTypeButton.SetTitle(((BackgroundTypes)(int)NSUserDefaults.StandardUserDefaults.IntForKey(UserDefaultsKeys.BackgroundModeType)).ToString(), UIControlState.Normal); CheckUpdate(); }