Example #1
0
        private void imgGun_Loaded(object sender, RoutedEventArgs e)
        {
            GunsViewModel lDC = (GunsViewModel)this.DataContext;

            imgGun.Source = LawlerBallisticsFactory.ConvertToBitmap(lDC.SelectedGun.GunPic);
        }
        private void imgCartridge_Loaded(object sender, RoutedEventArgs e)
        {
            CartridgesViewModel lDC = (CartridgesViewModel)this.DataContext;

            imgCartridge.Source = LawlerBallisticsFactory.ConvertToBitmap(lDC.SelectedCartridge.CartridgePic);
        }