示例#1
0
 private void lengthValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     if (hifi != null)
     {
         mainViewport.Children.Remove(hifi);
         hifi = new HDHifi(new Point3D(0, 0, 0), new Size3D(lengthX.Value, lengthY.Value, lengthZ.Value), new SolidColorBrush(Colors.Black)
                           , new SolidColorBrush(Colors.LightCyan)
                           , new BitmapImage(new Uri("Resource/drewno.png", UriKind.Relative)));
         mainViewport.Children.Add(hifi);
     }
 }
示例#2
0
        public HDHiFiWindow()
        {
            InitializeComponent();
            combos.ItemsSource = songs;
            songs.Add(new Uri("Hubert_Drogosz/Resources/cos1.wav", UriKind.Relative));
            songs.Add(new Uri("Hubert_Drogosz/Resources/katy.wav", UriKind.Relative));
            var bitmap = new BitmapImage(new Uri("Hubert_Drogosz/Resource/drewno.png", UriKind.Relative));

            hifi = new HDHifi(new Point3D(0, 0, 0), new Size3D(2, 2, 1), new SolidColorBrush(Colors.Black)
                              , new SolidColorBrush(Colors.LightCyan)
                              , bitmap);


            mainViewport.Children.Add(hifi);
        }