예제 #1
0
 public SettingsWindow(MainForm callingForm, List<PlaylistBase> playlists)
 {
     this.callingForm = callingForm;
     this.playlists = playlists;
     this.settings = callingForm.Settings;
     InitializeComponent();
 }
예제 #2
0
        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();
        }
예제 #3
0
파일: Program.cs 프로젝트: koaset/KoPlayer
        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();
        }
예제 #4
0
        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);
        }