Task ServiceNodeChanged(ServiceNodeButtonRow obj) { IsBusy = true; RemoveHeaderSection("Friends"); UIApp.Run(Update); return(Task.CompletedTask); }
async Task SelectServiceNode(ServiceNodeButtonRow button) { await Navigation.PushAsync(new ServiceNodesPage((serviceNode) => { button.ServiceNode = serviceNode; VerifyApp.Current.SetLastUsedServiceNode(serviceNode); })); }
public VerifyPage(VerificationResult result) : base("VerifyPage") { Subscribe <ServiceNodesLoadedEvent>(ServiceNodesLoaded); var viewResult = result != null; AddTitleRow("Title"); if (!viewResult) { AddHeaderRow("Search"); _transactionId = AddEntryRow(null, "TransactionId"); _transactionId.SetDetailViewIcon(Icons.ShieldCheck); _transactionId.Edit.TextChanged += (sender, e) => { StatusValidators.PositiveNumberValidator(null, _transactionId.Edit, e.NewTextValue, e.OldTextValue); }; AddSubmitRow("SearchButton", Search, false); AddInfoRow("SearchInfo"); AddFooterRow(); } _verifyButton = AddButtonRow("VerifyFile", VerifyFile); _verifyButton.RowStyle = Theme.SubmitButton; _verifyButton.IsEnabled = false; _verifyView = new VerifyView(); AddViewRow(_verifyView); _viewFiles = AddButtonRow("ViewFiles", ViewFiles); _viewFiles.IsEnabled = false; _link = AddLinkRow("Link", ""); _link.IsEnabled = false; _verifyLink = AddLinkRow("VerifyLink", ""); _verifyLink.IsEnabled = false; _copyVerifyLink = AddButtonRow("CopyVerifyLink", Copy); _copyVerifyLink.IsEnabled = false; _account = AddButtonRow("Account", Account); _account.IsEnabled = false; AddFooterRow(); if (!viewResult) { AddHeaderRow("Common.ServiceNode"); _serviceNode = AddRow(new ServiceNodeButtonRow(VerifyApp.Current.GetLastUsedServiceNode(), this, SelectServiceNode)); AddInfoRow("Common.ServiceNodeInfo"); AddFooterRow(); } if (viewResult) { Update(result); } }
public SubscriptionsPage() : base("SubscriptionsPage") { Subscribe <ServiceNodesLoadedEvent>(Loaded); Subscribe <ServiceAccountAuthorizedEvent>(AccountAuth); Subscribe <ServiceAccountImportEvent>(AccountImport); IsSuspendedLayout = true; AddTitleRow("Title"); IsBusy = true; AddHeaderRow("Common.ServiceNode"); _serviceNode = AddRow(new ServiceNodeButtonRow(this, ServiceNodesPageSelectionFlags.ActiveRequired, "sub")); _serviceNode.SelectionChanged = ServiceNodeChanged; AddInfoRow("Common.ServiceNodeInfo"); AddFooterRow(); }
void SetupPage() { StackLayout.Children.Clear(); _footer = AddTitleRow("Title"); _serviceNodeButton = null; if (!ServiceNodeManager.Current.HadUnlockedServiceNode) { AddHeaderRow("Auth"); AddButtonRow("Authorize", Authorize); AddInfoRow("AutorhizeInfo"); AddFooterRow(); } else { AddHeaderRow("MiscHeader"); var button = AddButtonRow("Search", Search); button.SetDetailViewIcon(Icons.Search); button = AddButtonRow("Pending", Pending); button.SetDetailViewIcon(Icons.UserClock); button = AddButtonRow("YourContact", YourContact); button.SetDetailViewIcon(Icons.User); if (UIApp.CanShare) { button = AddButtonRow("Share", Share); button.SetDetailViewIcon(Icons.Share); } button = AddButtonRow("Copy", Copy); button.SetDetailViewIcon(Icons.Copy); AddInfoRow("MiscInfo"); AddFooterRow(); AddHeaderRow("Common.ServiceNode"); _serviceNodeButton = AddRow(new ServiceNodeButtonRow(this, ServiceNodesPageSelectionFlags.ActiveRequired | ServiceNodesPageSelectionFlags.UnlockedAccountRequired, "contacts")); _serviceNodeButton.SelectionChanged = ServiceNodeChanged; AddInfoRow("Common.ServiceNodeInfo"); AddFooterRow(); } }
public InboxesPage() : base("InboxesPage") { Subscribe <InboxRecordDownloadEvent>(InboxDownload); IsSuspendedLayout = true; AddTitleRow("Title"); AddHeaderRow("Common.ServiceNode"); _serviceNodeButton = AddRow(new ServiceNodeButtonRow(this, ServiceNodesPageSelectionFlags.ActiveRequired, "inboxes")); _serviceNodeButton.SelectionChanged = ServiceNodeChanged; AddInfoRow("Common.ServiceNodeInfo"); AddFooterRow(); IsBusy = true; UIApp.Run(Update); }
public ExplorePage() : base("ExplorePage") { Subscribe <ServiceNodesLoadedEvent>(Loaded); Subscribe <ServiceAccountAuthorizedEvent>(AccountAuth); Subscribe <ServiceAccountImportEvent>(AccountImport); IsSuspendedLayout = true; AddTitleRow("Title"); AddHeaderRow("Search"); _searchText = AddEntryRow("", "SearchTerm"); _searchText.SetDetailViewIcon(Icons.Coins); _searchButton = AddSubmitButtonRow("SearchButton", Search); (_searchButton.DetailView as FontIcon).Icon = Icons.Search; _searchButton.IsEnabled = false; _searchText.Edit.TextChanged += (sender, e) => { UpdateSearch(); }; AddFooterRow(); AddHeaderRow("Common.ServiceNode"); _serviceNode = AddRow(new ServiceNodeButtonRow(this, ServiceNodesPageSelectionFlags.ActiveRequired, "explore")); _serviceNode.SelectionChanged = ServiceNodeChanged; AddInfoRow("Common.ServiceNodeInfo"); AddFooterRow(); UpdateSuspendedLayout(); UIApp.Run(Update); }
Task ServiceNodeChanged(ServiceNodeButtonRow obj) { IsBusy = true; UIApp.Run(Update); return(Task.CompletedTask); }
Task ServiceNodeChanged(ServiceNodeButtonRow obj) { UpdateSearch(); UIApp.Run(Update); return(Task.CompletedTask); }