Beispiel #1
0
        public void Close(IGuiController view)
        {
            _guiControllers.Remove(view);
            _stack.Remove(view);

            Object.Destroy(view.Root);
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new ZeusGuiContext object.
        /// </summary>
        public ZeusTemplateContext()
        {
            this._input   = new ZeusInput();
            this._output  = new ZeusOutput();
            this._gui     = new GuiController(this);
            this._objects = new Hashtable();

            this._objects["ui"] = _gui;
        }
Beispiel #3
0
        /// <summary>
        /// Creates a new ZeusGuiContext object and defaults it's properties to the passed in objects.
        /// </summary>
        /// <param name="input">The ZeusInput object to pass into the template inteface segment.</param>
        /// <param name="gui">The GuiController object to use in the template inteface segment.</param>
        /// <param name="objects">A HashTable containing any other objects that need to be included in the template context.</param>
        public ZeusTemplateContext(IZeusInput input, /*IGuiController gui,*/ Hashtable objects)
        {
            this._input = input;
            //this._gui = gui;
            this._gui     = new GuiController(this);
            this._objects = objects;
            this._output  = new ZeusOutput();

            this._objects["ui"] = _gui;
        }
Beispiel #4
0
        private void Load()
        {
            _appController = AppDomain.CreateDomain(Guid.NewGuid().ToString(), null, null);

            _appController.InitializeLifetimeService();

            _guiController =
                (IGuiController)
                _appController.CreateInstanceAndUnwrap(
                    Properties.Settings.Default.AssemblyName,
                    Properties.Settings.Default.TypeName);

            _guiController.Update += OnUpdate;
            _guiController.Closed += OnShutDown;
        }
Beispiel #5
0
 public GuiTraceListener(string name, ILogFormatter formatter, IGuiController guiController)
     : base(name)
 {
     this.formatter = formatter;
     this.guiController = guiController;
 }
Beispiel #6
0
 public void Open(IGuiController view)
 {
     view.Root.SetActive(true);
     _guiControllers.Add(view);
     _stack.Add(view);
 }
Beispiel #7
0
        private void Unload()
        {
            _guiController = null;
            ///GC.Collect();

            try
            {
                AppDomain.Unload(_appController);
            }
            catch (Exception)
            {

            }
        }
		/// <summary>
		/// Creates a new ZeusGuiContext object.
		/// </summary>
		public ZeusTemplateContext() 
		{
			this._input = new ZeusInput();
			this._output = new ZeusOutput();
			this._gui = new GuiController(this);
			this._objects = new Hashtable();

			this._objects["ui"] = _gui;
		}
		/// <summary>
		/// Creates a new ZeusGuiContext object and defaults it's properties to the passed in objects.
		/// </summary>
		/// <param name="input">The ZeusInput object to pass into the template inteface segment.</param>
		/// <param name="gui">The GuiController object to use in the template inteface segment.</param>
		/// <param name="objects">A HashTable containing any other objects that need to be included in the template context.</param>
		public ZeusTemplateContext(IZeusInput input, /*IGuiController gui,*/ Hashtable objects)
		{
			this._input = input;
            //this._gui = gui;
            this._gui = new GuiController(this);
			this._objects = objects;
			this._output = new ZeusOutput();

			this._objects["ui"] = _gui;
		}