/// <summary> /// Enable, disable night mode /// </summary> /// <param name="nightModeEnabled">self explanatory</param> void OnNightModeChanged(bool nightModeEnabled) { this.KeysCollectionView.BackgroundColor = Util.BackgroundColor; this.View.SetNeedsDisplay(); KeysCollectionView.SetNeedsDisplay(); ConfigNameLbl.SetNeedsDisplay(); KeysCollectionView.ReloadData(); }
void ReleaseDesignerOutlets() { if (bannerView != null) { bannerView.Dispose(); bannerView = null; } if (ConfigListTableView != null) { ConfigListTableView.Dispose(); ConfigListTableView = null; } if (ConfigNameLbl != null) { ConfigNameLbl.Dispose(); ConfigNameLbl = null; } if (EditBtn != null) { EditBtn.Dispose(); EditBtn = null; } if (ExportConfigBtn != null) { ExportConfigBtn.Dispose(); ExportConfigBtn = null; } if (ImportConfigBtn != null) { ImportConfigBtn.Dispose(); ImportConfigBtn = null; } if (KeysCollectionView != null) { KeysCollectionView.Dispose(); KeysCollectionView = null; } if (NewConfigBtn != null) { NewConfigBtn.Dispose(); NewConfigBtn = null; } if (SearchConfigBtn != null) { SearchConfigBtn.Dispose(); SearchConfigBtn = null; } if (SelectConfigBtn != null) { SelectConfigBtn.Dispose(); SelectConfigBtn = null; } if (SettingsBtn != null) { SettingsBtn.Dispose(); SettingsBtn = null; } }