Esempio n. 1
0
 public void RegisterEventFunction(string var, LuaTranslator lt)
 {
     if (var == "TagRead")
     {
         tagRead = lt;
     }
 }
 public void RegisterEventFunction(string var, LuaTranslator lt)
 {
     if (var == "OnFinish")
     {
         onComplete = lt;
     }
     else if (var == "OnFail")
     {
         onFail = lt;
     }
 }
Esempio n. 3
0
        public void SetNegativeButton(String title, LuaTranslator action)
        {
#if WINDOWS_PHONE
            ((CustomMessageBox)dialog).RightButtonContent = title;
#elif NETFX_CORE
            if (dialog.DefaultCommandIndex == 0 && dialog.CancelCommandIndex == 0)
            {
                dialog.Commands.Clear();
            }
            dialog.Commands.Add(new UICommand(title, new UICommandInvokedHandler((cmd) => { OnPositiveButton.CallIn(cmd); })));
            dialog.CancelCommandIndex = (uint)dialog.Commands.Count;
#endif
            OnNegativeButton = action;
        }
Esempio n. 4
0
 public void RegisterEventFunction(string var, LuaTranslator lt)
 {
 }
Esempio n. 5
0
 public void RegisterEventFunction(string var, LuaTranslator lt)
 {
     throw new NotImplementedException();
 }