public SettingsWindow(MainForm callingForm, List<PlaylistBase> playlists) { this.callingForm = callingForm; this.playlists = playlists; this.settings = callingForm.Settings; InitializeComponent(); }
public SongPropertiesWindow(MainForm mainForm, Song song, int clickedIndex, PlaylistBase currentPlaylist, Library library) { this.mainForm = mainForm; this.song = song; this.currentIndex = clickedIndex; this.currentPlaylist = currentPlaylist; this.library = library; InitializeComponent(); }
static void Run() { // Start the main form Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var mainForm = new MainForm(); Application.Run(mainForm); // Save playlists after form exits foreach (var pl in mainForm.Playlists) pl.Save(); }
public MultiSongPropertiesWindow(MainForm mainForm, List<Song> songs, PlaylistBase currentPlaylist, Library library) { this.mainForm = mainForm; this.songs = songs; this.currentPlaylist = currentPlaylist; this.library = library; this.saveProperties = new Dictionary<string, bool>(); InitializeComponent(); save_ComboBox.SelectedIndex = 0; for (int i = 2; i < save_ComboBox.Items.Count; i++) this.saveProperties.Add(save_ComboBox.Items[i].ToString(), false); }