public void Close(IGuiController view) { _guiControllers.Remove(view); _stack.Remove(view); Object.Destroy(view.Root); }
/// <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; }
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; }
public GuiTraceListener(string name, ILogFormatter formatter, IGuiController guiController) : base(name) { this.formatter = formatter; this.guiController = guiController; }
public void Open(IGuiController view) { view.Root.SetActive(true); _guiControllers.Add(view); _stack.Add(view); }
private void Unload() { _guiController = null; ///GC.Collect(); try { AppDomain.Unload(_appController); } catch (Exception) { } }