/// <summary> /// Implements <c>Dispose</c> method of <c>IDisposable</c> interface. /// </summary> public void Dispose() { if (_ui != null) { _ui.Dispose(); _ui = null; } }
private void InstantiateBrowser(string type, string title) { switch (type.ToLower()) { case "ie": _ui = new CloudPosIE.UI(title, true); break; //case "essential": // _ui = new CloudPosEO.UI(title); // _ui.Notify += _ui_Notify; // break; //case "awesomium": // _ui = new CloudPosAwesomium.UI(title); // _ui.Notify += _ui_Notify; // break; } _ui.Loaded += _ui_Loaded; _ui.Unloaded += _ui_Unloaded; }
/* * InstantiateBrowser is called from the Constructor to instantiate an * implementation of the ICloudPosUI interface. * * At present, only one implementation is supported: CloudPosIE.UI * * The commented-out code is for other browser types that were being tried, * but which are not presently included. */ private void InstantiateBrowser(string type, string title) { switch (type.ToLower()) { //case "cefsharp": // _ui = new CloudPosCef.UI(title, false); // _ui.Notify += _ui_Notify; // break; case "eo webbrowser": _ui = new CloudPosEO.UI(title, false); _ui.Notify += _ui_Notify; break; //case "awesomium": // _ui = new CloudPosAwesomium.UI(title, false); // _ui.Notify += _ui_Notify; // break; case ".net webbrowser": default: _ui = new CloudPosIE.UI(title, false); _ui.Notify += _ui_Notify; break; } }