public void Init()
        {
            if (_Navigated)
            {
                _Navigated = false;
                return;
            }

            this.IsVisileActors = false;
            Device.BeginInvokeOnMainThread(() =>
            {
                _movieParameter.Resource = MoviesApiResourcesConsts.POPULAR_ACTORS;
                _movieParameter.Page     = 1;
                _peopleService.GetActors(_movieParameter).ContinueWith((actorsList) =>
                {
                    if (actorsList.Status == System.Threading.Tasks.TaskStatus.RanToCompletion)
                    {
                        var actorsResult = actorsList.Result;
                        if (!actorsResult.Any())
                        {
                            Global.Instance.Toast.Show("No actors found...");
                        }
                        else
                        {
                            Actors.Clear();
                            PopulateActorListView(actorsResult);
                            this.IsVisileActors = true;
                        }
                    }
                });
            });
        }
Exemplo n.º 2
0
 public new void Clear()
 {
     base.Clear();
     Categories.Clear();
     Countries.Clear();
     Actors.Clear();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Define os atores a serem utilizados para a verificação de colisão ao invés de utilizar uma tela.
        /// </summary>
        public void SetActors(params Actor[] entities)
        {
            Actors.Clear();
            Actors.AddRange(entities);

            Screen = null;
        }
 void PullToRefresh()
 {
     this.IsRefreshing        = true;
     _movieParameter.Resource = MoviesApiResourcesConsts.POPULAR_ACTORS;
     _movieParameter.Page     = 1;
     Device.BeginInvokeOnMainThread(() =>
     {
         _peopleService.GetActors(_movieParameter).ContinueWith((actorList) =>
         {
             if (actorList.Status == System.Threading.Tasks.TaskStatus.RanToCompletion)
             {
                 var actorsResult = actorList.Result;
                 if (!actorsResult.Any())
                 {
                     Global.Instance.Toast.Show("No actors found...");
                 }
                 else
                 {
                     Actors.Clear();
                     PopulateActorListView(actorsResult);
                 }
                 this.IsRefreshing = false;
             }
         });
     });
 }
        public void SendServerTravel(byte newGameState, string worldBuilder, string levelName, int width, int height)
        {
            Actors.Clear();

            _levelChange     = new LevelChange(newGameState, worldBuilder, levelName, width, height);
            _lastLevelChange = new LevelChange(newGameState, worldBuilder, levelName, width, height);
        }
 public void Initialize(IEnumerable <IActorViewModel> actors)
 {
     Actors.Clear();
     foreach (IActorViewModel actor in actors)
     {
         Actors.Add(actor);
     }
 }
Exemplo n.º 7
0
 public async Task OnNavigatedTo(TraktShow e)
 {
     Show = e;
     Actors.Clear();
     RecentEpisodes.Clear();
     await LoadActorsAsync();
     await LoadRecentEpisodesAsync();
 }
Exemplo n.º 8
0
 public void Dispose()
 {
     Engine.Locator.RoomController.Rooms.TryRemove(Id, out Room room);
     Actors.Clear();
     _items.Clear();
     Items.Clear();
     ProcessComponent.Dispose();
     ProcessComponent = null;
     Grid.Dispose();
     GC.SuppressFinalize(this);
 }
Exemplo n.º 9
0
        private void LoadActors()
        {
            Actors.Clear();
            var actors = _movieActorRepository.GetAllMovieActorByMovieId(DisplayDetailModel.Id);

            foreach (var actor in actors)
            {
                var personInCurrentMovie = _personRepository.GetByIdListModel(actor.ActorId);
                if (personInCurrentMovie != null)
                {
                    Actors.Add(personInCurrentMovie);
                }
            }
        }
Exemplo n.º 10
0
 private void OnMovieAddNewReceived(MovieNewWrapper movieDetailModel)
 {
     LoadPeople();
     CanSaveFlag        = true;
     CanDeleteFlag      = false;
     DisplayDetailModel = null;
     EditDetailModel    = new MovieDetailModel
     {
         Id = movieDetailModel.Id
     };
     Actors.Clear();
     Directors.Clear();
     Ratings.Clear();
 }
        internal override void HandleServerTravel(INetworkMessageIn msg)
        {
            var newGameState      = msg.ReadByte();
            var worldBuilderClass = msg.ReadString();
            var levelName         = msg.ReadString();

            Actors.Clear();

            ChangeGameState(newGameState, levelName);

            var outMessage = CreateMessage(NetworkMessageType.ServerTravel);

            SendMessageToAll(outMessage, MessageDeliveryMethod.ReliableOrdered, 2);
        }
Exemplo n.º 12
0
        //--------------------------------------------------------------------------------------------- /Обновление некоторых штучек-дрючек
        private void AddMovie_Activated(object sender, EventArgs e)
        {
            //--------------------------------------------------------------------------------------------- //Обновление списка категорий
            Category.Items.Clear();
            var category = My.MovieCategory.ToList();

            foreach (var item in category)
            {
                Category.Items.Add(item.Category.ToString());
            }
            //--------------------------------------------------------------------------------------------- //Заполнение строки с режиссёрами из дочернего окна
            if (ProducerAdd.id != null)
            {
                Producer.Clear();
                foreach (Producer c in ProducerAdd.id)
                {
                    Producer.Text += c.SecondName + " " + c.FirstName + " " + c.LastName + ", ";
                }
            }
            //--------------------------------------------------------------------------------------------- //Заполнение строки с актёрами из дочернего окна
            if (ActorAdd.id != null)
            {
                Actors.Clear();
                foreach (Actor c in ActorAdd.id)
                {
                    Actors.Text += c.SecondName + " " + c.FirstName + " " + c.LastName + ", ";
                }
            }
            //--------------------------------------------------------------------------------------------- //Заполнение строки с странами из дочернего окна
            if (CountryAdd.id != null)
            {
                Country.Clear();
                foreach (Country c in CountryAdd.id)
                {
                    Country.Text += c.CountryName + ", ";
                }
            }
            //--------------------------------------------------------------------------------------------- //Заполнение строки с жанрами из дочернего окна
            if (GenreAdd.id != null)
            {
                textBox1.Clear();
                foreach (Genre c in GenreAdd.id)
                {
                    textBox1.Text += c.Name + ", ";
                }
            }
        }
Exemplo n.º 13
0
        public void SearchByText(string searchText)
        {
            if (this._Navigated)
            {
                _Navigated = false;
                return;
            }

            this.SearchText = searchText;
            this.IsVisible  = false;

            Global.Instance.Toast.Show(string.Format("Searching by {0}...", searchText));

            _movieParameter.Page     = 1;
            _movieParameter.Query    = HttpUtility.UrlEncode(searchText);
            _movieParameter.Resource = MoviesApiResourcesConsts.SEARCH_PERSON;

            Device.BeginInvokeOnMainThread(() =>
            {
                _peopleService.GetActors(_movieParameter).ContinueWith((actorsList) =>
                {
                    if (actorsList.Status == System.Threading.Tasks.TaskStatus.RanToCompletion)
                    {
                        var actors = actorsList.Result;
                        if (!actors.Any())
                        {
                            Global.Instance.Toast.Show("No actors found...");
                        }
                        else
                        {
                            Actors.Clear();
                            PopulateListView(actors);
                        }
                        this.IsVisible    = true;
                        this.IsRefreshing = false;
                    }
                });
            });
        }
Exemplo n.º 14
0
        public void Cleanup()
        {
            var it = Scenes.Values.GetEnumerator();

            while (it.MoveNext())
            {
                it.Current.Cleanup();
            }
            it.Dispose();
            Scenes.Clear();

            var it2 = Actors.Values.GetEnumerator();

            while (it2.MoveNext())
            {
                it2.Current.OnRemoveWorld(this);
            }
            it2.Dispose();
            Actors.Clear();
            Cleanup_Editor();
            mDefaultScene = null;
        }
Exemplo n.º 15
0
        private void ClearGUI()
        {
            // Recommended for identification
            Title.Clear();
            IMDB_ID.Clear();
            TMDB_ID.Clear();

            // additional collection infos
            CollectionTitle.Clear();
            CollectionIndex.Clear();
            CollectionKeywords.Clear();
            // additional movie infos
            ReleaseDate.Clear();
            Overview.Clear();
            Tagline.Clear();
            Certification.Clear();
            Genres.Clear();
            Actors.Clear();
            Directors.Clear();
            Writers.Clear();
            MovieKeywords.Clear();
        }
Exemplo n.º 16
0
        public Task ClearAsync(ISystemService systems, CancellationToken cancellationToken = default)
        {
            Actors.Clear();

            return(systems.CleanupAsync(cancellationToken));
        }
Exemplo n.º 17
0
        //---------------------------------------//
        //-----         FUNÇÕES             -----//
        //---------------------------------------//

        /// <summary>
        /// Define a tela a ser utilizada para buscar os atores para verificação de colisão.
        /// </summary>
        public void SetScreen(LayeredScreen screen)
        {
            Screen = screen;
            Actors.Clear();
        }
Exemplo n.º 18
0
 public void Reset()
 {
     ResetChunks();
     Actors.Clear();
     Prepare();
 }
Exemplo n.º 19
0
 public void Clear() => Actors.Clear();
Exemplo n.º 20
0
 public void RemoveAllActors()
 {
     Actors.Clear();
 }
Exemplo n.º 21
0
 public void Clear()
 {
     Actors.Clear();
     NewActors.Clear();
 }