Ejemplo n.º 1
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];
            }

            allOpenSystemWindows.Add(this);
        }
Ejemplo n.º 2
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);
		}
Ejemplo n.º 3
0
 public void SetHoveredWidget(GuiWidget widgetToShowToolTipFor)
 {
     ToolTipManager.SetHoveredWidget(widgetToShowToolTipFor);
 }