Forge
csharpdeeb25a2
1using CascadeIDE.Models;
2using CommunityToolkit.Mvvm.Input;
3
4namespace CascadeIDE.ViewModels;
5
6/// <summary>Страница Correspondence (CRS) в оболочке Mfd (ADR 0156).</summary>
7public partial class MainWindowViewModel
8{
9 [RelayCommand]
10 private void CloseCorrespondencePage()
11 {
12 if (CurrentMfdShellPage != MfdShellPage.Correspondence)
13 return;
14
15 foreach (var p in MfdShellPageOrder)
16 {
17 if (p == MfdShellPage.Correspondence)
18 continue;
19 if (IsMfdShellPageAllowed(p))
20 {
21 CurrentMfdShellPage = p;
22 return;
23 }
24 }
25
26 CurrentMfdShellPage = MfdShellPage.Chat;
27 }
28}
29
View only · write via MCP/CIDE