Exemplo n.º 1
0
        public override void OnCreated(ILoading loading)
        {
            Logger.LogDebug($"{nameof(LoadingExtension)}.{nameof(OnCreated)}");
            base.OnCreated(loading);

            MarkupManager.Clear();
            TemplateManager.Clear();
        }
Exemplo n.º 2
0
        private static void AddBackupMarking(UIHelperBase helper)
        {
            UIHelper group = helper.AddGroup(Localize.Settings_BackupMarking) as UIHelper;

            AddDeleteAll(group, Localize.Settings_DeleteMarkingButton, Localize.Settings_DeleteMarkingCaption, $"{Localize.Settings_DeleteMarkingMessage}\n{NodeMarkupMessageBox.CantUndone}", () => MarkupManager.Clear());
            AddDump(group, Localize.Settings_DumpMarkingButton, Localize.Settings_DumpMarkingCaption, Loader.DumpMarkingData);
            AddRestore <ImportMarkingMessageBox>(group, Localize.Settings_RestoreMarkingButton, Localize.Settings_RestoreMarkingCaption, $"{Localize.Settings_RestoreMarkingMessage}\n{NodeMarkupMessageBox.CantUndone}");
        }