public void AddElement(MasterDataDefineLabel.ElementType elementType) { SortDialogElementListContext filterSwitch = new SortDialogElementListContext(); filterSwitch.IconImage = GetElementPanel(elementType); filterSwitch.ElementType = elementType; filterSwitch.IsSelect = CheckSelectElement(elementType, m_SortDialog.m_SortData); filterSwitch.DidSelectItem = OnClickElementButton; Elements.Add(filterSwitch); }
void OnClickElementButton(SortDialogElementListContext elementButton) { SoundUtil.PlaySE(SEID.SE_MENU_OK); }