Esempio n. 1
0
        void SetupPage()
        {
            StackLayout.Children.Clear();

            AddTitleRow("Title");

            if (!ServiceNodeManager.Current.HadUnlockedServiceNode)
            {
                AddInfoRow("Auth", Tr.Get("App.FullName"));

                ServiceNodesPage.AddAuthorizeSection(ServiceNodeManager.Current.NewDefaultServiceNode, this, false);
            }
            else
            {
                if (UIAppSettings.AppReady)
                {
                    IsBusy = true;
                    if (ServiceNodeManager.Current.Ready)
                    {
                        UpdateChats();
                    }
                }
                else
                {
                    ShowInfo();
                }
            }

            UpdateSuspendedLayout();
        }
        void SetupPage()
        {
            if (!ServiceNodeManager.Current.HadUnlockedServiceNode)
            {
                AddTitleRow("VerifyPage.Title");

                AddInfoRow("AddVerificationPage.VerifyInfo");

                ServiceNodesPage.AddAuthorizeSection(ServiceNodeManager.Current.NewDefaultServiceNode, this, false);
            }
            else
            {
                AddTitleRow("Title");

                ToolbarItems.Add(new ExtToolbarItem(Tr.Get("Common.Refresh"), null, () =>
                {
                    Download(false);
                    return(Task.CompletedTask);
                }));

                AddHeaderRow("RecentTransactions");
                AddFooterRow();

                Download();
            }
        }
Esempio n. 3
0
        void SetupPage()
        {
            AddTitleRow("Title");

            if (!ServiceNodeManager.Current.HadUnlockedServiceNode)
            {
                AddInfoRow("NotesPage.Info", Tr.Get("App.FullName"));

                ServiceNodesPage.AddAuthorizeSection(ServiceNodeManager.Current.NewDefaultServiceNode, this, false);
            }
            else
            {
                var editor = AddEditorRow("", "Text");
                editor.Edit.TextChanged += Edit_TextChanged;
                FocusElement             = editor.Edit;


                var submit = AddSubmitRow("Submit", Submit, true);
                submit.IsEnabled = false;

                AddHeaderRow("Common.SubmitAccount");
                _submitAccount = AddRow(new SubmitAccountButtonRow(NoteApp.Current.GetLastUsedSubmitAccount <SubmitAccount>(), this, SelectSubmitAccount));
                AddInfoRow("Common.SubmitAccountInfo");
                AddFooterRow();
            }
        }
Esempio n. 4
0
        void SetupPage()
        {
            if (!_unlockState.HasNewState())
            {
                return;
            }

            StackLayout.Children.Clear();

            AddTitleRow("Title");

            if (!_unlockState.HasUnlockedState)
            {
                AddInfoRow("Info", Tr.Get("App.FullName"));
                AddFooterRow();

                ServiceNodesPage.AddAuthorizeSection(ServiceNodeManager.Current.NewDefaultServiceNode, this, false);
            }
            else
            {
                ToolbarItems.Add(new ExtToolbarItem(Tr.Get("Common.Refresh"), null, async() =>
                {
                    await TodoApp.Current.QueryAllTodoLists();
                }));

                if (!UIAppSettings.AppReady)
                {
                    AddInfoRow("Info", Tr.Get("App.FullName"));
                }

                AddHeaderRow("TodoLists");
                var b = AddButtonRow("NewTodoList", NewTodoList);
                b.SetDetailViewIcon(Icons.Tasks);
                b.RowStyle = Theme.SubmitButton;
                AddFooterRow();

                SetupRecentTasks();
                UIApp.SetupTodoList(this, ViewTodoList);
            }
        }
Esempio n. 5
0
        void SetupPage()
        {
            StackLayout.Children.Clear();
            _recentUpdateRows.Clear();
            _viewedUpdateRows.Clear();

            AddTitleRow("Title");

            if (!ServiceNodeManager.Current.HadUnlockedServiceNode)
            {
                AddInfoRow("StatusInfo", Tr.Get("App.FullName"));

                ServiceNodesPage.AddAuthorizeSection(this, false);
            }
            else
            {
                if (!UIAppSettings.AppReady)
                {
                    Start();
                }
            }

            UpdateSuspendedLayout();
        }
Esempio n. 6
0
        void SetupPage()
        {
            StackLayout.Children.Clear();

            if (!ServiceNodeManager.Current.HadUnlockedServiceNode)
            {
                AddTitleRow("VerifyPage.Title");

                AddInfoRow("VerifyInfo");

                ServiceNodesPage.AddAuthorizeSection(ServiceNodeManager.Current.NewDefaultServiceNode, this, false);
            }
            else
            {
                AddTitleRow("Title");
                AddHeaderRow("Info");

                _description = AddEntryRow(null, "Description");
                _description.SetDetailViewIcon(Icons.Pencil);
                _link = AddEntryRow(null, "Link");
                _link.SetDetailViewIcon(Icons.RowLink);

                Status.Add(_description.Edit, T("DescriptionStatus"), (view, entry, newText, oldTex) =>
                {
                    if (string.IsNullOrEmpty(newText))
                    {
                        return(false);
                    }

                    return(true);
                }).
                Add(_link.Edit, T("LinkStatus"), (view, entry, newText, oldText) =>
                {
                    if (string.IsNullOrEmpty(newText))
                    {
                        return(true);
                    }

                    return(newText.IsValdiUrl(true));
                });

                AddFooterRow();

                AddHeaderRow("Files");

                _addButton = AddButtonRow("AddFile", AddFile);

                Status.Add(T("FilesStatus"), (sv) =>
                {
                    return(GetVerifyFiles().Count > 0);
                });

                AddFooterRow();

                AddSubmitRow("Submit", Submit);

                AddHeaderRow("Common.SubmitAccount");
                _submitAccount = AddRow(new SubmitAccountButtonRow(VerifyApp.Current.GetLastUsedSubmitAccount <SubmitAccount>(), this, SelectSubmitAccount));
                AddInfoRow("Common.SubmitAccountInfo");
                AddFooterRow();
            }
        }