public SystemWindow(double width, double height) : base(width, height, SizeLimitsToSet.None) { if (globalSystemWindowCreator == null) { string pluginPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); PluginFinder <SystemWindowCreatorPlugin> systemWindowCreatorFinder = new PluginFinder <SystemWindowCreatorPlugin>(pluginPath); if (systemWindowCreatorFinder.Plugins.Count != 1) { throw new Exception(string.Format("Did not find any SystemWindowCreators in Plugin path ({0}.", pluginPath)); } globalSystemWindowCreator = systemWindowCreatorFinder.Plugins[0]; } }
public SystemWindow(double width, double height) : base(width, height, SizeLimitsToSet.None) { ToolTipManager = new ToolTipManager(this); if (globalSystemWindowCreator == null) { string pluginPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); PluginFinder<SystemWindowCreatorPlugin> systemWindowCreatorFinder = new PluginFinder<SystemWindowCreatorPlugin>(pluginPath); if (systemWindowCreatorFinder.Plugins.Count != 1) { throw new Exception(string.Format("Did not find any SystemWindowCreators in Plugin path ({0}.", pluginPath)); } globalSystemWindowCreator = systemWindowCreatorFinder.Plugins[0]; } openWindows.Add(this); }