You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
873 B
27 lines
873 B
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<TViewModel>(string windowKey, TViewModel viewModel) where TViewModel : class;
|
|
void Show<TViewModel>(string windowKey, TViewModel viewModel, Action<Window, object> initializeAction) where TViewModel : class;
|
|
bool? ShowDialog(string windowKey);
|
|
bool? ShowDialog<TViewModel>(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";
|
|
// 添加更多窗口键...
|
|
}
|
|
}
|
|
|