Exemple #1
0
    public static MFUIResult SafeSetValue_W(object obj, System.Action act, object buffer)
    {
        MFUIResult result = new MFUIResult();

        if (obj != null)
        {
            if (act != null)
            {
                act();
                result.isFailed = false;
            }
            else
            {
                result.isFailed = true;
            }
        }
        else
        {
            result.isFailed = true;
        }

        result.buffer = buffer;
        return(result);
    }
Exemple #2
0
 public void SetTipRewardList(System.Collections.Generic.List <string> rewardlist)
 {
     setRewardListResult = (MFUIResult)MFUIUtils.SafeSetValue_W(ProtectGodressTipViewManager.Instance,
                                                                () => { ProtectGodressTipViewManager.Instance.SetTipRewardList(rewardlist); },
                                                                rewardlist);
 }
 public void AddChargePriceItem(System.Collections.Generic.List <string> itemText)
 {
     result = MFUIUtils.SafeSetValue_W(NewChargeRewardUIViewManager.Instance,
                                       () => { NewChargeRewardUIViewManager.Instance.AddChargePriceItem(itemText); }, itemText);
 }
 public void SetTipRewardList(System.Collections.Generic.List<string> rewardlist)
 {
     setRewardListResult = (MFUIResult)MFUIUtils.SafeSetValue_W(ProtectGodressTipViewManager.Instance,
         () => { ProtectGodressTipViewManager.Instance.SetTipRewardList(rewardlist); },
         rewardlist);
 }
 public void RefreshFXGrid(System.Collections.Generic.List<EquipFXUIGridData> list)
 {
     resultRefreshFXGrid = MFUIUtils.SafeSetValue_W(EquipFXUIViewManager.Instance,
         () => { EquipFXUIViewManager.Instance.RefreshFXGrid(list); }, list);
 }
Exemple #6
0
    public static MFUIResult SafeSetValue_W(object obj, System.Action act, object buffer)
    {
        MFUIResult result = new MFUIResult();

        if (obj != null)
        {
            if (act != null)
            {
                act();
                result.isFailed = false;
            }
            else
            {
                result.isFailed = true;
            }
        }
        else
        {
            result.isFailed = true;
        }

        result.buffer = buffer;
        return result;
    }
 public void RefreshGridList(System.Collections.Generic.List<NewLoginRewardGridData> list)
 {
     m_refreshGridResult = MFUIUtils.SafeSetValue_W(NewLoginRewardUIViewManager.Instance,
         () => { NewLoginRewardUIViewManager.Instance.RefreshGridList(list); }, list);
 }
 public void AddChargePriceItem(System.Collections.Generic.List<string> itemText)
 {
     result = MFUIUtils.SafeSetValue_W(NewChargeRewardUIViewManager.Instance,
         () => { NewChargeRewardUIViewManager.Instance.AddChargePriceItem(itemText); }, itemText);
 }
 public void RefreshFXGrid(System.Collections.Generic.List <EquipFXUIGridData> list)
 {
     resultRefreshFXGrid = MFUIUtils.SafeSetValue_W(EquipFXUIViewManager.Instance,
                                                    () => { EquipFXUIViewManager.Instance.RefreshFXGrid(list); }, list);
 }
Exemple #10
0
 public void RefreshGridList(System.Collections.Generic.List <NewLoginRewardGridData> list)
 {
     m_refreshGridResult = MFUIUtils.SafeSetValue_W(NewLoginRewardUIViewManager.Instance,
                                                    () => { NewLoginRewardUIViewManager.Instance.RefreshGridList(list); }, list);
 }