/* Copyright (C) 2014-2019 de4dot@gmail.com This file is part of dnSpy dnSpy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. dnSpy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with dnSpy. If not, see . */ using System; using System.ComponentModel; using System.Reflection; using System.Windows; using dnSpy.Contracts.Controls; namespace dnSpy.Contracts.App { /// /// App window /// public interface IAppWindow { /// /// Raised when the main window is closing /// event EventHandler MainWindowClosing; /// /// Raised when the main window has closed /// event EventHandler MainWindowClosed; /// /// Gets the main window /// Window MainWindow { get; } /// /// Gets the instance /// IWpfCommands MainWindowCommands { get; } /// /// Gets the instance /// IAppStatusBar StatusBar { get; } /// /// true if the app has been loaded /// bool AppLoaded { get; } /// /// Adds to the window title /// /// Some text void AddTitleInfo(string info); /// /// Removes from the window title /// /// Some text void RemoveTitleInfo(string info); /// /// Refreshes the toolbar /// void RefreshToolBar(); /// /// Gets the version (stored in an attribute) /// string AssemblyInformationalVersion { get; } /// /// Gets the command line args /// IAppCommandLineArgs CommandLineArgs { get; } } }