Пример #1
0
    private void ClickInputCoupon(IUIObject obj)
    {
        CouponDlg couponDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COUPON_DLG) as CouponDlg;

        if (couponDlg != null)
        {
            couponDlg.SetChatType();
        }
    }
Пример #2
0
    private static void CouponFunc(string strText)
    {
        if (strText.Contains("[#"))
        {
            strText = strText.Remove(0, 11);
        }
        if (strText.Contains("["))
        {
            strText = strText.Replace("[", string.Empty);
        }
        if (strText.Contains("]"))
        {
            strText = strText.Replace("]", string.Empty);
        }
        CouponDlg couponDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COUPON_DLG) as CouponDlg;

        if (couponDlg != null)
        {
            couponDlg.SetCouponText(strText);
        }
    }