Example #1
0
        private async Task AddTypeFrontButtonhandler()
        {
            await templateView.HtmlEditor.ForceNotifyContentChanged();

            if (await CheckTypeFieldExist())
            {
                return;
            }

            ShowFlyout();
            fieldButtonClickFunction = AddTypeField;
        }
Example #2
0
        private async Task ShowWarnThenFieldList(AsyncTaskRoutedHandler func)
        {
            var isContinue = await MainPage.WarnFullSyncIfNeeded();

            if (!isContinue)
            {
                return;
            }
            InitFieldListViewIfNeeded();

            fieldButtonClickFunction = func;
            fieldListView.Show(editModelButton);
        }
Example #3
0
        private async Task AddClozeButtonhandler()
        {
            if ((ModelType)JsonHelper.GetNameNumber(templateInformationViewModel.CurrentModel, "type") != ModelType.CLOZE)
            {
                await UIHelper.ShowMessageDialog(UIConst.WARN_NOTCLOZETYPE);

                return;
            }

            await templateView.HtmlEditor.ForceNotifyContentChanged();

            if (await CheckIfClozeFieldExist())
            {
                return;
            }

            ShowFlyout();
            fieldButtonClickFunction = AddClozeField;
        }
Example #4
0
 private void AddFieldButtonhandler()
 {
     ShowFlyout();
     fieldButtonClickFunction = AddField;
 }