public void Init() { GeneratorCell = new ToolsViewCell(AppResources.PasswordGenerator, AppResources.PasswordGeneratorDescription, "refresh"); WebCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe"); ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools"); ImportCell = new ToolsViewCell(AppResources.ImportLogins, AppResources.ImportLoginsDescription, "cloudup"); var section = new TableSection(" ") { GeneratorCell }; if (Device.OS == TargetPlatform.iOS) { ExtensionCell = new ToolsViewCell(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionDescription, "upload"); section.Add(ExtensionCell); } else { AutofillCell = new ToolsViewCell( string.Format("{0} ({1})", AppResources.BitwardenAutofillService, AppResources.Beta), AppResources.BitwardenAutofillServiceDescription, "upload"); section.Add(AutofillCell); } section.Add(WebCell); section.Add(ShareCell); section.Add(ImportCell); var table = new ExtendedTableView { EnableScrolling = true, Intent = TableIntent.Settings, HasUnevenRows = true, Root = new TableRoot { section } }; if (Device.OS == TargetPlatform.iOS) { table.RowHeight = -1; table.EstimatedRowHeight = 100; } Title = AppResources.Tools; Content = table; }
public void Init() { WebCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe.png"); ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png"); ImportCell = new ToolsViewCell(AppResources.ImportItems, AppResources.ImportItemsDescription, "cloudup.png"); var section = new TableSection(Helpers.GetEmptyTableSectionTitle()); if (Device.RuntimePlatform == Device.iOS) { ExtensionCell = new ToolsViewCell(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionDescription, "upload.png"); section.Add(ExtensionCell); } if (Device.RuntimePlatform == Device.Android) { var desc = _deviceInfoService.AutofillServiceSupported ? AppResources.BitwardenAutofillServiceDescription : AppResources.BitwardenAutofillAccessibilityServiceDescription; AutofillCell = new ToolsViewCell(AppResources.BitwardenAutofillService, desc, "upload.png"); section.Add(AutofillCell); } section.Add(WebCell); section.Add(ShareCell); section.Add(ImportCell); var table = new ExtendedTableView { EnableScrolling = true, Intent = TableIntent.Settings, HasUnevenRows = true, Root = new TableRoot { section } }; if (Device.RuntimePlatform == Device.iOS) { table.RowHeight = -1; table.EstimatedRowHeight = 100; } Title = AppResources.Tools; Content = table; }
public void Init() { var generatorCell = new ToolsViewCell(AppResources.PasswordGenerator, AppResources.PasswordGeneratorDescription, "refresh"); generatorCell.Tapped += GeneratorCell_Tapped; var webCell = new ToolsViewCell(AppResources.WebVault, AppResources.WebVaultDescription, "globe"); webCell.Tapped += WebCell_Tapped; var importCell = new ToolsViewCell(AppResources.ImportLogins, AppResources.ImportLoginsDescription, "cloudup"); importCell.Tapped += ImportCell_Tapped; var section = new TableSection { generatorCell }; if (Device.OS == TargetPlatform.iOS) { var extensionCell = new ToolsViewCell(AppResources.BitwardenAppExtension, AppResources.BitwardenAppExtensionDescription, "upload"); extensionCell.Tapped += (object sender, EventArgs e) => { Navigation.PushModalAsync(new ExtendedNavigationPage(new ToolsExtensionPage())); }; section.Add(extensionCell); } else { var autofillServiceCell = new ToolsViewCell( string.Format("{0} ({1})", AppResources.BitwardenAutofillService, AppResources.Beta), AppResources.BitwardenAutofillServiceDescription, "upload"); autofillServiceCell.Tapped += (object sender, EventArgs e) => { Navigation.PushModalAsync(new ExtendedNavigationPage(new ToolsAutofillServicePage())); }; section.Add(autofillServiceCell); } section.Add(webCell); section.Add(importCell); var table = new ExtendedTableView { EnableScrolling = true, Intent = TableIntent.Settings, HasUnevenRows = true, Root = new TableRoot { section } }; if (Device.OS == TargetPlatform.iOS) { table.RowHeight = -1; table.EstimatedRowHeight = 100; } Title = AppResources.Tools; Content = table; }
public void Init() { var generatorCell = new ToolsViewCell("Password Generator", "Automatically generate strong, unique passwords for your logins.", "refresh"); generatorCell.Tapped += GeneratorCell_Tapped; var webCell = new ToolsViewCell("bitwarden Web Vault", "Manage your logins from any web browser with the bitwarden web vault.", "globe"); webCell.Tapped += WebCell_Tapped; var importCell = new ToolsViewCell("Import Logins", "Quickly bulk import your logins from other password management apps.", "cloudup"); importCell.Tapped += ImportCell_Tapped; var section = new TableSection { generatorCell }; if (Device.OS == TargetPlatform.iOS) { var extensionCell = new ToolsViewCell("bitwarden App Extension", "Use bitwarden in Safari and other apps to auto-fill your logins.", "upload"); extensionCell.Tapped += (object sender, EventArgs e) => { Navigation.PushModalAsync(new ExtendedNavigationPage(new ToolsExtensionPage())); }; section.Add(extensionCell); } else { var autofillServiceCell = new ToolsViewCell("bitwarden Auto-fill Service", "Use the bitwarden accessibility service to auto-fill your logins.", "upload"); autofillServiceCell.Tapped += (object sender, EventArgs e) => { Navigation.PushAsync(new ToolsAutofillServicePage()); }; section.Add(autofillServiceCell); } section.Add(webCell); section.Add(importCell); var table = new ExtendedTableView { EnableScrolling = true, Intent = TableIntent.Settings, HasUnevenRows = true, Root = new TableRoot { section } }; if (Device.OS == TargetPlatform.iOS) { table.RowHeight = -1; table.EstimatedRowHeight = 100; } Title = AppResources.Tools; Content = table; }