Example #1
0
        public WindowWeaponSelection()
        {
            InitializeComponent();
            weaponList = CensusAPI.GetWeaponList();
            lvWeaponList.ItemsSource = weaponList;
            CollectionView weaponView = (CollectionView)CollectionViewSource.GetDefaultView(lvWeaponList.ItemsSource);

            weaponView.Filter = CustomFilter;
        }
Example #2
0
        public MainWindow()
        {
            initializing = true;
            InitializeComponent();
            initializing = false;


            this.Title = "Planetside 2 TTK calculator";
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            this.loadout1 = new Loadout(new Target(), CensusAPI.GetWeapon(2), new double[] { 0, 1 });
            this.loadout2 = new Loadout(new Target(), CensusAPI.GetWeapon(3), new double[] { 0, 1 });
            this.range    = 0;

            this.ChartableTTKDist1 = new ObservableCollection <KeyValuePair <int, double> >();
            this.ChartableTTKDist2 = new ObservableCollection <KeyValuePair <int, double> >();

            UpdateBasicWeaponInfoText();
            UpdateChartableTTKDist();
            LoadLineChartData();
        }
Example #3
0
 private void menuRefresh_Click(object sender, RoutedEventArgs e)
 {
     CensusAPI.UpdateWeaponDataFromDBG();
 }