public void DeleteGroupCard(FresviiGUIGroupCard card)
        {
            if (card.Group.MembersCount <= 1)
            {
                FASGroup.DeleteGroup(card.Group.Id, delegate(Fresvii.AppSteroid.Models.Error error)
                {
                    if (error != null)
                    {
                        if (FASConfig.Instance.logLevel <= FAS.LogLevels.Error)
                        {
                            Debug.LogError("GroupService.DeleteGroup : " + error.ToString());
                        }
                    }
                });
            }
            else
            {
                FASGroup.DeleteMember(card.Group.Id, FAS.CurrentUser.Id, delegate(Fresvii.AppSteroid.Models.Error error)
                {
                    if (error != null)
                    {
                        if (FASConfig.Instance.logLevel <= FAS.LogLevels.Error)
                        {
                            Debug.LogError("GroupService.DeleteMember : " + error.ToString());
                        }
                    }
                });
            }

            groupCards.Remove(card);

            Destroy(card);
        }
        public void ShowActionSheet(FresviiGUIGroupCard card)
        {
            List<string> buttons = new List<string>();

            buttons.Add(FresviiGUIText.Get("Delete"));

            ControlLock = true;

            actionSheet = Fresvii.AppSteroid.Gui.ActionSheet.Show(this.scaleFactor, this.postFix, GuiDepth - 10, buttons.ToArray(), (selectedButton) =>
            {
                ControlLock = false;

                if (selectedButton == FresviiGUIText.Get("Delete"))
                {
                    if (card.Group.Pair)
                    {
            #if !UNITY_EDITOR
                        Fresvii.AppSteroid.Util.DialogManager.Instance.SetLabel(FresviiGUIText.Get("Yes"), FresviiGUIText.Get("No"), FresviiGUIText.Get("Close"));

                        Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSubmitDialog(FresviiGUIText.Get("NotArrowDeletePair"), delegate(bool del) { });
            #endif
                        return;
                    }
                    else
                    {
            #if !UNITY_EDITOR
                        Fresvii.AppSteroid.Util.DialogManager.Instance.SetLabel(FresviiGUIText.Get("Delete"), FresviiGUIText.Get("Cancel"), FresviiGUIText.Get("Close"));

                        Fresvii.AppSteroid.Util.DialogManager.Instance.ShowSelectDialog(FresviiGUIText.Get("ConfirmDeleteGroup"), delegate(bool del)
                        {
                            if (del)
                            {
            #endif
                                card.OnCardGone();
            #if !UNITY_EDITOR
                            }
                        });
            #endif
                    }
                }
            });
        }