using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AIK.Service.IService { public interface IWindowService { void Show(string windowKey); void Show(string windowKey, TViewModel viewModel) where TViewModel : class; void Show(string windowKey, TViewModel viewModel, Action initializeAction) where TViewModel : class; bool? ShowDialog(string windowKey); bool? ShowDialog(string windowKey, TViewModel viewModel) where TViewModel : class; void RegisterWindow(string windowKey, Type windowType, Type viewModelType = null); } public static class WindowKey { public const string VideoPopup = "VideoPopup"; // 添加更多窗口键... } }