//static CustomFont Exo2; public static void LoadCustomFonts() { if (Exo == null) { Exo = new CustomFont(Properties.Resources.Exo2_RegularExpanded); } // Exo2 = new CustomFont(Properties.Resources.Exo2_RegularExpanded); }
private void ID3Control_Load(object sender, EventArgs e) { //titleEntryBox.BringToFront(); CustomFont.LoadCustomFonts(); SetFont(CustomFont.Exo.font); }
private void MusicControlGUI_Load(object sender, EventArgs e) { if (startArgs == null) { musicControl = new MusicControl(); MusicPlayer.WinFormApp = this; } else { //TODO: should check what files startArgs is musicControl = new MusicControl(startArgs); MusicPlayer.WinFormApp = this; } musicControl.LoadMusicControl(); //add playlist files to split container Panel p = musicControl.playlistFileView.GetPanel(); musicControl.playlistFileView.Dock = DockStyle.Fill; // AddToSplitContainer(fileContainer.Panel1, p); musicControl.playlistFileView.ContextMenuStrip = playlistFileContext; //musicControl.playlistFileManager.UpdateBackColor(); //add playlist manager to split container // AddToSplitContainer(playlistControlContainer.Panel1, musicControl.playlistManager); musicControl.playlistView.Dock = DockStyle.Fill; playlistControlContainer.Panel1.Controls.Add(musicControl.playlistView); musicControl.playlistView.ContextMenuStrip = playlistContext; musicControl.playlistView.BringToFront(); //add the file manager to split container // file_panel.Controls.Add(musicControl.musicFileManager); musicControl.musicFileView.ContextMenuStrip = musicFileContext; //hack to get the desired colour //in future make the playlist and music file manager with similar toned backgrounds musicControl.musicFileView.BackColor = Color.Black; musicControl.musicFileView.ForeColor = Color.Yellow; musicControl.musicFileView.Dock = DockStyle.Fill; // squashBoxControl1.Swap(); /* * foreach (Control c in Controls) * c.DoubleBuffering(true); * * this.DoubleBuffering(true); */ MusicPlayer.Instance.PlayEvent += MusicPlayer_PlayEvent; //restored that last state of the window, (normal or maximized) SetWindowState(); tool.musicEditingProgram = Properties.Settings.Default.VegasPath; tool.HideConsole(); musicControl.trackContext = trackContext; dockedTrackManagers = musicControl.dockedTrackManagers; AdjustAllSplitters(8, this.Controls); // musicPanel = playlistContainer.Panel1; musicPanel = fileContainer.Panel2; fileSquashBox.MakeBackPanel(musicControl.musicFileView); fileSquashBox.MakeFrontPanel(musicControl.playlistFileView); songControl1.squashBoxControl1.splitContainer.SplitterDistance = 0; fileSquashBox.splitContainer.SplitterMoving += fileSplitContainer_SplitterMoving; CustomFont.LoadCustomFonts(); fileViewLabel.Font = CustomFont.Exo.font; tool.GlobalForm = this; /* * typeof(Panel).InvokeMember("DoubleBuffered", * BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, * null, songControl1.titleLabel, new object[] { true }); */ //link the picture main info panel to the background panel image // backgroundPanel.BackgroundImageLayout = ImageLayout.Zoom; //backgroundPanel.BackColor = Color.Black; //mainTrackInfo.exteneralPanel = backgroundPanel; //Tests.RunTests(); //TODO: remember to load the starting playlist into the music player //TODO: here is where we add the starting playlist as the docked playlists }