csharpdeeb25a2 | 1 | #nullable enable |
| 2 | |
| 3 | using CascadeIDE.Services; |
| 4 | using CascadeIDE.ViewModels; |
| 5 | using CascadeIDE.Views; |
| 6 | |
| 7 | namespace CascadeIDE.Features.Shell.Application; |
| 8 | |
| 9 | /// <summary>Точка входа View → Services для главного окна (не вызывать Services из code-behind напрямую).</summary> |
| 10 | public static class MainWindowViewServices |
| 11 | { |
| 12 | public static void ApplyHotkeys(MainWindow window, MainWindowViewModel vm) => |
| 13 | MainWindowHotkeyService.ApplyAll(window, vm); |
| 14 | |
| 15 | public static string GetColorsUnderCursorJson(MainWindow window) => |
| 16 | UiColorsUnderCursor.GetJson(window); |
| 17 | |
| 18 | public static string GetControlAppearanceJson(MainWindow window, string name) => |
| 19 | UiControlAppearance.GetJson(window, name); |
| 20 | |
| 21 | public static string ApplyControlLayout(MainWindow window, string name, string json) => |
| 22 | UiControlLayoutApply.Apply(window, name, json); |
| 23 | } |
| 24 | |
View only · write via MCP/CIDE