internal async Task FindPropertyCustomBindFunc(EngineNS.UISystem.UIElement uiElement, string propertyName) { string funcName; if (uiElement.PropertyBindFunctions.TryGetValue(propertyName, out funcName)) { Macross.Category category = Macross_Client.GetCategory(MacrossPanel.UIBindFuncCategoryName); var item = category.FindItem(funcName); if (item != null) { await Macross_Client.ShowNodesContainer(item); HostControl.ChangeToLogic(); } } }
internal void DelPropertyCustomBindFunc(EngineNS.UISystem.UIElement uiElement, string propertyName) { string funcName; if (uiElement.PropertyBindFunctions.TryGetValue(propertyName, out funcName)) { Macross.Category category = Macross_Client.GetCategory(MacrossPanel.UIBindFuncCategoryName); var item = category.FindItem(funcName); if (item != null) { category.RemoveItem(funcName); Macross_Client.RemoveNodesContainer(item); var fileName = Macross_Client.GetGraphFileName(item.Name); EngineNS.CEngine.Instance.FileManager.DeleteFile(fileName); } uiElement.PropertyBindFunctions.Remove(propertyName); } }