Ejemplo n.º 1
0
 public VGame(string Title, string Platform, VGStatus Status)
 {
     this.Title    = Title;
     this.Platform = Platform;
     this.Status   = Status;
     Init();
 }
Ejemplo n.º 2
0
        private void FilterSelector()
        {
            VGStatus s = VGStatus.Пройдена;

            if (rbAll.IsChecked == true)
            {
                //s = VGStatus.Играю;
                vglistView.Filter = new Predicate <object>(item => ((VGame)item).Title != null);
            }
            else
            {
                if (rbPlaying.IsChecked == true)
                {
                    s = VGStatus.Играю;
                }
                if (rbBeaten.IsChecked == true)
                {
                    s = VGStatus.Пройдена;
                }
                if (rbOnHold.IsChecked == true)
                {
                    s = VGStatus.Отложена;
                }
                if (rbDropped.IsChecked == true)
                {
                    s = VGStatus.Заброшена;
                }
                if (rbToPlay.IsChecked == true)
                {
                    s = VGStatus.Поиграть;
                }
                vglistView.Filter =
                    new Predicate <object>(item => ((VGame)item).Status.Equals(s));
            }
            DGProd.Items.Refresh();
        }