public ChangeStyleWin(ColorStyle colors) { InitializeComponent(); myColors = colors; CanvasMenuBackground.SelectedColor = (Color)ColorConverter.ConvertFromString(myColors._MenuBackgroundColor); }
public MainWindow() { InitializeComponent(); _timer.Interval = TimeSpan.FromMilliseconds(50); _timer.Tick += new EventHandler(timer_Tick); _DefaultTime = "00:00:00"; _DispTotalMediaTime = false; _Style = new ColorStyle(); //this.WindowStyle = WindowStyle.None; PlaylistBox.ItemsSource = Locator.WMPLocator.MainStaticListPlaylists._Names; MediaPlayer.MediaOpened += (o, e) => { SeekBar.Maximum = MediaPlayer.NaturalDuration.TimeSpan.Seconds + (MediaPlayer.NaturalDuration.TimeSpan.Minutes * 60) + (MediaPlayer.NaturalDuration.TimeSpan.Hours * 360); }; LibraryGrid.DataContext = new LibraryViewModel(); }
public MainWindow() { InitializeComponent(); _timer.Interval = TimeSpan.FromMilliseconds(50); _timer.Tick += new EventHandler(timer_Tick); _DefaultTime = "00:00:00"; _DispTotalMediaTime = false; _Style = new ColorStyle(); MediaPlayer.MediaOpened += (o, e) => { SeekBar.Maximum = MediaPlayer.NaturalDuration.TimeSpan.Seconds + (MediaPlayer.NaturalDuration.TimeSpan.Minutes * 60) + (MediaPlayer.NaturalDuration.TimeSpan.Hours * 360); }; // PannelPlaylistList.KeyDown += new EventHandler<System.Windows.Input.KeyEventArgs>(PlaylistKey); // Initialisation library MusiqueBox.ItemsSource = _music._PlaylistList; VideoBox.ItemsSource = _video._PlaylistList; ImageBox.ItemsSource = _image._PlaylistList; PlaylistBox.ItemsSource = _playlists._PlaylistList; LibraryGrid.DataContext = _playlists; dispAllPlaylist(); // Initialisation Current Playlist BitmapImage logo = new BitmapImage(); logo.BeginInit(); logo.UriSource = new Uri(Locator.WMPLocator._currentImg, UriKind.Relative); logo.EndInit(); PlaylistImage.Source = logo; PannelPlaylistName.Text = Locator.WMPLocator._currentName; PannelPlaylistList.ItemsSource = null; PannelPlaylistList.ItemsSource = Locator.WMPLocator._currentlist; }
public ColorStyleModel() { _ColorStyle = new ColorStyle(); }