コード例 #1
0
ファイル: GroupViewModel.cs プロジェクト: Makzz90/VKClient_re
        public void LoadGroupData(bool reload = true, bool suppressLoading = true)
        {
            if (this._isLoading)
            {
                return;
            }
            this._isLoading = true;
            base.SetInProgress(true, reload ? CommonResources.Refreshing : CommonResources.Loading);
            Action <BackendResult <GroupData, ResultCode> > _9__1 = null;

            Execute.ExecuteOnUIThread(delegate
            {
                GroupsService arg_2F_0 = GroupsService.Current;
                long arg_2F_1          = this._gid;
                Action <BackendResult <GroupData, ResultCode> > arg_2F_2;
                if ((arg_2F_2 = _9__1) == null)
                {
                    arg_2F_2 = (_9__1 = delegate(BackendResult <GroupData, ResultCode> res)
                    {
                        this.SetInProgress(false, "");
                        this._isLoading = false;
                        this._loaded = true;
                        if (res.ResultCode == ResultCode.Succeeded)
                        {
                            this._group = res.ResultData.group;
                            this.ReadData();
                            this.LoadWallData(reload, suppressLoading);
                        }
                    });
                }
                arg_2F_0.GetGroupInfo(arg_2F_1, arg_2F_2);
            });
        }