protected override void ComposeLeftActions(TreeComposer composer) { Actions.Action(composer, "back", EditorResources.Actions_Back, () => { NavigationStore.NagivateTo(NavigationStore.PageId.Edit); return(Task.CompletedTask); }); }
protected override void OnInit() { if (CompilationStore.Compilation.Diagnostics.Any()) { NavigationStore.NagivateTo(NavigationStore.PageId.Edit); return; } }
protected override void OnInit() { if (CompilationStore.Compilation.Diagnostics.Any()) { NavigationStore.NagivateTo(NavigationStore.PageId.Edit); return; } this.engine.ExecutedStep += this.ExecutedStep; }
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); }); } }