Exemplo n.º 1
0
 protected override void ComposeLeftActions(TreeComposer composer)
 {
     Actions.Action(composer, "back", EditorResources.Actions_Back, () =>
     {
         NavigationStore.NagivateTo(NavigationStore.PageId.Edit);
         return(Task.CompletedTask);
     });
 }
Exemplo n.º 2
0
 protected override void OnInit()
 {
     if (CompilationStore.Compilation.Diagnostics.Any())
     {
         NavigationStore.NagivateTo(NavigationStore.PageId.Edit);
         return;
     }
 }
Exemplo n.º 3
0
        protected override void OnInit()
        {
            if (CompilationStore.Compilation.Diagnostics.Any())
            {
                NavigationStore.NagivateTo(NavigationStore.PageId.Edit);
                return;
            }

            this.engine.ExecutedStep += this.ExecutedStep;
        }
Exemplo n.º 4
0
        protected override void ComposeTree(TreeComposer composer)
        {
            if (CompilationStore.Compilation.Diagnostics.Any())
            {
                string message = string.Format(CultureInfo.CurrentCulture, EditorResources.Errors_Count, CompilationStore.Compilation.Diagnostics.Count);
                Actions.DisabledAction(composer, "debug", EditorResources.Actions_Debug, message: message);
                Actions.DisabledAction(composer, "run", EditorResources.Actions_Run, message: message);
            }
            else
            {
                Actions.Action(composer, "debug", EditorResources.Actions_Debug, onClick: () =>
                {
                    NavigationStore.NagivateTo(NavigationStore.PageId.Debug);
                    return(Task.CompletedTask);
                });

                Actions.Action(composer, "run", EditorResources.Actions_Run, onClick: () =>
                {
                    NavigationStore.NagivateTo(NavigationStore.PageId.Run);
                    return(Task.CompletedTask);
                });
            }
        }