UIHub.instance.LoadUI((int)UIPanelType.TestPanel);
UIHub.instance.GetBinder<$uibinder$> ((int)arr [0]/*holder insid*/).OnBtnClose ();
UIHub.instance.LoadCheckDialogUI ( "Warning", "Are you sure to delete this profile?", new Dictionary<UIEnum_CheckDlgBtnType, string> () { { UIEnum_CheckDlgBtnType.Confirm, "Confirm" }, { UIEnum_CheckDlgBtnType.Cancel, "Cancel" } }, btnType => { if (btnType == UIEnum_CheckDlgBtnType.Confirm) { //TODO: } } );
Run and try to operate the components.