示例#1
0
文件: Adapter.cs 项目: mono/uia2atk
		public uint AddFocusHandler (FocusHandler handler)
		{
			if (focusHandlers.ContainsValue (handler))
				return 0;

			lastFocusHandlerId++;
			focusHandlers [lastFocusHandlerId] = handler;
			return lastFocusHandlerId;
		}
示例#2
0
 private void SetFocusOnMainWindown(object s, System.Timers.ElapsedEventArgs e)
 {
     FocusHandler.SetFocus(System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
 }
示例#3
0
 private void SetFocusOnMainWindown()
 {
     FocusHandler.SetFocus(string.Format("{0}.exe", System.Reflection.Assembly.GetExecutingAssembly().GetName().Name));
 }
示例#4
0
 void Awake()
 {
     myButton = GetComponent<Button>(); // <-- you get access to the button component here
     myButton.onClick.AddListener(VerifFormule);  // <-- you assign a method to the button OnClick event here
     focusHandler = (FocusHandler)GameObject.Find("Canvas/PanelDessous/FormulePan").GetComponent<FocusHandler>();
     terrainHandler = (TerrainHandler)GameObject.Find("Plane").GetComponent<TerrainHandler>();
 }