Ejemplo n.º 1
0
        /*
         * public void SwitchToRegular()
         * {
         *      NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
         * }
         *
         * public void SwitchToAccessory()
         * {
         *      NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Accessory;
         * }
         */

        public void FrontMessage(string message)
        {
            WindowFrontMessageController w = new WindowFrontMessageController();

            (Engine.Instance as Engine).WindowsOpen.Add(w);
            w.Message = message;
            GuiUtils.ShowWindowWithFocus(w, this);
        }
Ejemplo n.º 2
0
		/*
		public void SwitchToRegular()
		{
			NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
		}

		public void SwitchToAccessory()
		{
			NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Accessory;
		}
		*/

		public void FrontMessage(string message)
		{
			WindowFrontMessageController w = new WindowFrontMessageController ();
			(Engine.Instance as Engine).WindowsOpen.Add (w);
			w.Message = message;
			GuiUtils.ShowWindowWithFocus (w, this);
		}