Exemplo n.º 1
0
        public static void Open(IItem remote)
        {
            if (instance?.IsOpened == true)
            {
                instance.CloseWindow();
            }
            else
            {
                if (instance == null)
                {
                    instance        = new WindowVehicleRemoteControl();
                    instance.remote = remote;
                    Api.Client.UI.LayoutRootChildren.Add(instance);
                }

                ClientCurrentInteractionMenu.RegisterMenuWindow(instance);
                ClientCurrentInteractionMenu.Open();
            }
        }
Exemplo n.º 2
0
 public static void CloseActiveMenu()
 {
     instance?.CloseWindow();
 }