public BoxNotes()
 {
     mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
     dataManager = mainwindow.DataManager;
     InitializeComponent();
     dataManager.BoxChanged += Box_PropertyChanged;
 }
Пример #2
0
 public BoxAbilitySelector()
 {
     mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
     dataManager = mainwindow.DataManager;
     InitializeComponent();
     dataManager.BoxChanged += OnBoxChanged;
 }
Пример #3
0
        public RankControl()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            InitializeComponent();
        }
 public TrainerBackpack()
 {
     mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
     dataManager = mainwindow.DataManager;
     InitializeComponent();
     dataManager.TrainerChanged += Trainer_PropertyChanged;
 }
        public dexLearnsetDisplay()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            InitializeComponent();

            dataManager.DexChanged += OnDexChanged;
        }
Пример #6
0
        public boxMovesDisplay()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            DataContext = this;
            InitializeComponent();

            dataManager.BoxChanged     += OnBoxChanged;
            dataManager.TrainerChanged += OnBoxChanged;
        }
Пример #7
0
        public DexSelector()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            InitializeComponent();

            Data       = DataSerializer.LoadAllListData();
            SourceList = new CollectionViewSource()
            {
                Source = Data
            };
            ItemList            = SourceList.View;
            dexGrid.ItemsSource = ItemList;
        }
Пример #8
0
        public TrainerSelector()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            InitializeComponent();

            data = DataSerializer.LoadAllTrainerContainers();
            if (data == null)
            {
                data = new ObservableCollection <TrainerContainer>();
            }

            trainerGrid.ItemsSource = data;
        }
Пример #9
0
        public TrainerStatDisplay()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;
            DataContext = this;
            InitializeComponent();
            dataManager.TrainerChanged  += Trainer_PropertyChanged;
            rankControl.PropertyChanged += Stats_PropertyChanged;


            StatDotsList = new List <StatDots> {
                STRDots, DEXDots, VITDots, INSDots,
                TOUDots, COODots, BEADots, CLEDots, CUTDots,
                BRAWLDots, THROWDots, EVADEDots, WEAPODots, ALERTDots, ATHLEDots, NATURDots, STEALDots, ALLURDots, ETIQUDots, INTIMDots, PERFODots, CRAFTDots, LOREDots, MEDICDots, SCIENDots
            };
            foreach (StatDots sd in StatDotsList)
            {
                sd.PropertyChanged += Stats_PropertyChanged;
            }
        }
        public boxStatDisplay()
        {
            mainwindow  = (PokeroleUI2.MainWindow)Application.Current.MainWindow;
            dataManager = mainwindow.DataManager;

            DataContext = this;
            InitializeComponent();

            StatDotsList = new List <StatDots> {
                STRDots, DEXDots, VITDots, SPEDots, INSDots,
                TOUDots, COODots, BEADots, CLEDots, CUTDots,
                BRAWLDots, CHANNDots, EVADEDots, CLASHDots, ALERTDots, ATHLEDots, NATURDots, STEALDots, ALLURDots, ETIQUDots, INTIMDots, PERFODots, LOYALDots, HAPPYDots
            };
            foreach (StatDots sd in StatDotsList)
            {
                sd.PropertyChanged += Stats_PropertyChanged;
            }

            rankControl.PropertyChanged += Stats_PropertyChanged;
            dataManager.BoxChanged      += OnBoxChanged;
        }