Beispiel #1
0
        public void Save()
        {
            if (!File.Exists(_cuefile + ".bck"))
            {
                File.Copy(_cuefile, _cuefile + ".bck");
            }
            System.IO.StreamWriter wrt = new System.IO.StreamWriter(_cuefile);
            resetArt();
            indent = "";
            wrtl(wrt, "creator", "Banshee CueSheets Extension", true);
            wrtl(wrt, "creator-version", CS_Info.Version(), true);
            wrtl(wrt, "banshee-aaid", getArtId(), true);
            wrtl(wrt, "image", _image_file_name, true);
            wrtl(wrt, "composer", _composer, true);
            wrtl(wrt, "subtitle", _subtitle, true);
            wrtl(wrt, "year", _year, true);
            wrtl(wrt, "cddbid", _cddbId, true);
            wrtl(wrt, "performer", _performer);
            wrtl(wrt, "title", _title);
            string mfn = Tools.basename(_music_file_name);

            wrtl_file(wrt, mfn);

            int i, N;

            for (i = 0, N = nEntries(); i < N; i++)
            {
                CueSheetEntry e = _tracks[i];
                writeEntry(wrt, e, i);
            }

            wrt.Close();
        }
Beispiel #2
0
 public void handleAbout(object sender, EventArgs a)
 {
     Gtk.AboutDialog ab = new Gtk.AboutDialog();
     ab.Authors  = CS_Info.Authors();
     ab.Version  = CS_Info.Version();
     ab.Comments = CS_Info.Info();
     ab.Website  = CS_Info.Website();
     ab.Run();
     ab.Destroy();
 }