internal static void Create() { try { _abort = false; _isOpen = false; Console.WriteLine("Creating new MerchantFrame"); var tmp = new MerchantFrame(); _instance = tmp; _isOpen = true; if (!_abort && ObjectManager.Instance.Player.VendorGuid != 0) { return; } Console.WriteLine("Abort: " + _abort); Console.WriteLine("VendorGuid: " + ObjectManager.Instance.Player.VendorGuid); _isOpen = false; _instance = null; } catch (Exception e) { Console.WriteLine(e); _isOpen = false; _instance = null; } }
internal static void Destroy() { _abort = true; _isOpen = false; _instance = null; }