Пример #1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Jukebox.Client2;component/NowPlayingControl.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.RefreshButton1 = ((Jukebox.Client2.RefreshButton)(this.FindName("RefreshButton1")));
     this.NextButton1 = ((Jukebox.Client2.NextButton)(this.FindName("NextButton1")));
     this.PlayAndPauseButton1 = ((Jukebox.Client2.PlayAndPauseButton)(this.FindName("PlayAndPauseButton1")));
     this.ShuffleButton1 = ((Jukebox.Client2.ShuffleButton)(this.FindName("ShuffleButton1")));
     this.VolumeSlider = ((System.Windows.Controls.Slider)(this.FindName("VolumeSlider")));
     this.VolumeLevel = ((System.Windows.Controls.TextBlock)(this.FindName("VolumeLevel")));
 }
Пример #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Jukebox.Client2;component/NowPlayingControl.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.RefreshButton1      = ((Jukebox.Client2.RefreshButton)(this.FindName("RefreshButton1")));
     this.NextButton1         = ((Jukebox.Client2.NextButton)(this.FindName("NextButton1")));
     this.PlayAndPauseButton1 = ((Jukebox.Client2.PlayAndPauseButton)(this.FindName("PlayAndPauseButton1")));
     this.ShuffleButton1      = ((Jukebox.Client2.ShuffleButton)(this.FindName("ShuffleButton1")));
     this.VolumeSlider        = ((System.Windows.Controls.Slider)(this.FindName("VolumeSlider")));
     this.VolumeLevel         = ((System.Windows.Controls.TextBlock)(this.FindName("VolumeLevel")));
 }