public BoxNotes() { mainwindow = (PokeroleUI2.MainWindow)Application.Current.MainWindow; dataManager = mainwindow.DataManager; InitializeComponent(); dataManager.BoxChanged += Box_PropertyChanged; }
public BoxAbilitySelector() { mainwindow = (PokeroleUI2.MainWindow)Application.Current.MainWindow; dataManager = mainwindow.DataManager; InitializeComponent(); dataManager.BoxChanged += OnBoxChanged; }
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; }
public boxMovesDisplay() { mainwindow = (PokeroleUI2.MainWindow)Application.Current.MainWindow; dataManager = mainwindow.DataManager; DataContext = this; InitializeComponent(); dataManager.BoxChanged += OnBoxChanged; dataManager.TrainerChanged += OnBoxChanged; }
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; }
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; }
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; }