本文整理汇总了C#中IAppWindow类的典型用法代码示例。如果您正苦于以下问题:C# IAppWindow类的具体用法?C# IAppWindow怎么用?C# IAppWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IAppWindow类属于命名空间,在下文中一共展示了IAppWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FileListLoader
FileListLoader(IAppWindow appWindow, FileListManager fileListManager, FileTabManager fileTabManager, FileTabSerializer fileTabSerializer, [ImportMany] IEnumerable<Lazy<IFileListListener, IFileListListenerMetadata>> mefListeners) {
this.fileListManager = fileListManager;
this.fileTabManager = fileTabManager;
this.fileTabSerializer = fileTabSerializer;
this.listeners = mefListeners.OrderBy(a => a.Metadata.Order).ToArray();
appWindow.MainWindowClosed += AppWindow_MainWindowClosed;
}
示例2: NavigationCommandInstaller
NavigationCommandInstaller(IDocumentTabService documentTabService, IAppWindow appWindow) {
this.documentTabService = documentTabService;
Debug.Assert(Application.Current != null && Application.Current.MainWindow != null);
var cmds = appWindow.MainWindowCommands;
cmds.Add(NavigationCommands.BrowseBack, new RelayCommand(a => BrowseBack(), a => CanBrowseBack));
cmds.Add(NavigationCommands.BrowseForward, new RelayCommand(a => BrowseForward(), a => CanBrowseForward));
}
示例3: AboutScreenMenuItem
AboutScreenMenuItem(IDocumentViewerContentFactoryProvider documentViewerContentFactoryProvider, IDocumentTabService documentTabService, IAppWindow appWindow, IExtensionService extensionService, IContentTypeRegistryService contentTypeRegistryService) {
this.documentViewerContentFactoryProvider = documentViewerContentFactoryProvider;
this.documentTabService = documentTabService;
this.appWindow = appWindow;
this.extensionService = extensionService;
aboutContentType = contentTypeRegistryService.GetContentType(ContentTypes.AboutDnSpy);
}
示例4: DocumentListLoader
DocumentListLoader(IAppWindow appWindow, DocumentListService documentListService, DocumentTabService documentTabService, DocumentTabSerializer documentTabSerializer, [ImportMany] IEnumerable<Lazy<IDocumentListListener, IDocumentListListenerMetadata>> documentListListeners) {
this.documentListService = documentListService;
this.documentTabService = documentTabService;
this.documentTabSerializer = documentTabSerializer;
this.documentListListeners = documentListListeners.OrderBy(a => a.Metadata.Order).ToArray();
appWindow.MainWindowClosed += AppWindow_MainWindowClosed;
}
示例5: NavigationCommandInstaller
NavigationCommandInstaller(IFileTabManager fileTabManager, IAppWindow appWindow)
{
this.fileTabManager = fileTabManager;
Debug.Assert(Application.Current != null && Application.Current.MainWindow != null);
var cmds = appWindow.MainWindowCommands;
cmds.Add(NavigationCommands.BrowseBack, new RelayCommand(a => BrowseBack(), a => CanBrowseBack));
cmds.Add(NavigationCommands.BrowseForward, new RelayCommand(a => BrowseForward(), a => CanBrowseForward));
}
示例6: ExportProjectCommand
ExportProjectCommand(IAppWindow appWindow, IFileTreeView fileTreeView, ILanguageManager languageManager, IFileTreeViewSettings fileTreeViewSettings, IExportToProjectSettings exportToProjectSettings, [ImportMany] IEnumerable<Lazy<IBamlDecompiler>> bamlDecompilers) {
this.appWindow = appWindow;
this.fileTreeView = fileTreeView;
this.languageManager = languageManager;
this.fileTreeViewSettings = fileTreeViewSettings;
this.exportToProjectSettings = exportToProjectSettings;
this.bamlDecompiler = bamlDecompilers.FirstOrDefault();
}
示例7: MouseEvent
public MouseEvent(IAppWindow window, int wheelDelta, int x, int y)
{
Type = MouseEventType.Wheel;
Window = window;
WheelDelta = wheelDelta;
X = x;
Y = y;
}
示例8: InMemoryModuleManager
InMemoryModuleManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, Lazy<IMethodAnnotations> methodAnnotations, IAppWindow appWindow) {
this.fileTabManager = fileTabManager;
this.fileTreeView = fileTabManager.FileTreeView;
this.fileManager = this.fileTreeView.FileManager;
this.appWindow = appWindow;
this.methodAnnotations = methodAnnotations;
this.theDebugger = theDebugger;
theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First;
}
示例9: ExportProjectCommand
ExportProjectCommand(IAppWindow appWindow, IDocumentTreeView documentTreeView, IDecompilerService decompilerService, IDocumentTreeViewSettings documentTreeViewSettings, IExportToProjectSettings exportToProjectSettings, [ImportMany] IEnumerable<Lazy<IBamlDecompiler>> bamlDecompilers, [ImportMany] IEnumerable<Lazy<IXamlOutputOptionsProvider>> xamlOutputOptionsProviders) {
this.appWindow = appWindow;
this.documentTreeView = documentTreeView;
this.decompilerService = decompilerService;
this.documentTreeViewSettings = documentTreeViewSettings;
this.exportToProjectSettings = exportToProjectSettings;
bamlDecompiler = bamlDecompilers.FirstOrDefault();
xamlOutputOptionsProvider = xamlOutputOptionsProviders.FirstOrDefault();
}
示例10: CloseWindowController
public CloseWindowController(IAppWindow win, IIOPortHandler[] portHandlers)
{
_win = win;
_state = ClosingState.NoClosing;
_portHandlers = portHandlers;
_portHandlerClosedStates = new Dictionary<IIOPortHandler, bool>();
foreach (IIOPortHandler handler in portHandlers)
_portHandlerClosedStates[handler] = false;
}
示例11: UndoRedoCommmandLoader
UndoRedoCommmandLoader(IWpfCommandManager wpfCommandManager, Lazy<IUndoCommandManager> undoCommandManager, IAppWindow appWindow, IMessageBoxManager messageBoxManager) {
this.undoCommandManager = undoCommandManager;
this.messageBoxManager = messageBoxManager;
var cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_MAINWINDOW);
cmds.Add(UndoRoutedCommands.Undo, (s, e) => undoCommandManager.Value.Undo(), (s, e) => e.CanExecute = undoCommandManager.Value.CanUndo);
cmds.Add(UndoRoutedCommands.Redo, (s, e) => undoCommandManager.Value.Redo(), (s, e) => e.CanExecute = undoCommandManager.Value.CanRedo);
appWindow.MainWindowClosing += AppWindow_MainWindowClosing;
}
示例12: InMemoryModuleService
InMemoryModuleService(ITheDebugger theDebugger, IDocumentTabService documentTabService, Lazy<IMethodAnnotations> methodAnnotations, IAppWindow appWindow, SimpleProcessReader simpleProcessReader) {
this.documentTabService = documentTabService;
documentTreeView = documentTabService.DocumentTreeView;
documentService = documentTreeView.DocumentService;
this.appWindow = appWindow;
this.methodAnnotations = methodAnnotations;
this.theDebugger = theDebugger;
this.simpleProcessReader = simpleProcessReader;
theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First;
}
示例13: UndoRedoCommmandLoader
UndoRedoCommmandLoader(IWpfCommandService wpfCommandService, Lazy<IUndoCommandService> undoCommandService, IAppWindow appWindow, IMessageBoxService messageBoxService) {
this.undoCommandService = undoCommandService;
this.messageBoxService = messageBoxService;
var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW);
cmds.Add(UndoRoutedCommands.Undo, (s, e) => undoCommandService.Value.Undo(), (s, e) => e.CanExecute = undoCommandService.Value.CanUndo);
cmds.Add(UndoRoutedCommands.Redo, (s, e) => undoCommandService.Value.Redo(), (s, e) => e.CanExecute = undoCommandService.Value.CanRedo);
appWindow.MainWindowClosing += AppWindow_MainWindowClosing;
}
示例14: AppSettingsService
AppSettingsService(IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider, IAppWindow appWindow, ITreeViewService treeViewService, ITreeViewNodeTextElementProvider treeViewNodeTextElementProvider, [ImportMany] IEnumerable<Lazy<IAppSettingsPageContainer, IAppSettingsPageContainerMetadata>> appSettingsPageContainers, [ImportMany] IEnumerable<Lazy<IAppSettingsPageProvider>> appSettingsPageProviders, [ImportMany] IEnumerable<Lazy<IAppSettingsModifiedListener, IAppSettingsModifiedListenerMetadata>> appSettingsModifiedListeners) {
classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
this.textElementProvider = textElementProvider;
this.appWindow = appWindow;
this.treeViewService = treeViewService;
this.treeViewNodeTextElementProvider = treeViewNodeTextElementProvider;
this.appSettingsPageContainers = appSettingsPageContainers.OrderBy(a => a.Metadata.Order).ToArray();
this.appSettingsPageProviders = appSettingsPageProviders.ToArray();
this.appSettingsModifiedListeners = appSettingsModifiedListeners.OrderBy(a => a.Metadata.Order).ToArray();
}
示例15: closeResourcesReady
public bool closeResourcesReady(IAppWindow appWin)
{
if (this._appWinReadyToClose.ContainsKey(appWin))
{
this._appWinReadyToClose[appWin] = true;
}
else
{
GlobalServices.ErrMsg("WDSApplication.closeResourcesReady:", "No window found");
return false;
}
bool flag = true;
foreach (IAppWindow window in this._appWinReadyToClose.Keys)
{
if (!this._appWinReadyToClose[window])
{
flag = false;
break;
}
}
if (flag)
{
Form form = (Form) this._mainWin;
if (form.InvokeRequired)
{
form.Invoke(new MethodInvoker(form.Close));
}
else
{
form.Close();
}
if (this._helperWins == null)
{
return flag;
}
foreach (IAppWindow window2 in this._helperWins)
{
form = (Form) window2;
if (form.InvokeRequired)
{
form.Invoke(new MethodInvoker(form.Close));
}
else
{
form.Close();
}
}
}
return flag;
}