예제 #1
0
        public void LoadFilteredState()
        {
            Task task = Task.Run(() =>
            {
                SpinWait.SpinUntil(() => ParentState.Uploaded, 30000);

                if (!ParentState.Uploaded)
                {
                    Error = true;
                }

                if (Loaded ||
                    !Filtered ||
                    Type == "origin" ||
                    String.IsNullOrEmpty(Type) ||
                    Error)
                {
                    return;
                }

                Loading = true;
                Paused  = false;
                AppClient.RequestLoad(this);
            });
        }