Esempio n. 1
0
 // Token: 0x0600002E RID: 46 RVA: 0x00005ED8 File Offset: 0x000040D8
 private void open_Click(object sender, EventArgs e)
 {
     if (Program.open.ShowDialog() == DialogResult.OK)
     {
         file = new myFile();
         if (file.openFile(Program.open.FileName, FileMode.Open))
         {
             Form2 f = new Form2(file.detectID3());
         }
     }
 }
Esempio n. 2
0
 public ID3v2tag(Form1 f, myFile file, int major, bool isPresent)
 {
     version                = major;
     frameHeaderLength      = 6;
     frameTypeAndSizeLength = 3;
     if (version > 2)
     {
         frameHeaderLength      = 10;
         frameTypeAndSizeLength = 4;
     }
     myForm          = f;
     sourceData      = file.getAllBytes();
     alreadyHasID3v2 = isPresent;
 }
Esempio n. 3
0
 // Token: 0x06000032 RID: 50 RVA: 0x00005F70 File Offset: 0x00004170
 private void save_Click(object sender, EventArgs e)
 {
     if (Program.save.ShowDialog() == DialogResult.OK)
     {
         //if (Form1.values[6].Enabled)
         //{
         //    Program.writeID3v2();
         //}
         //else
         file = new myFile();
         if (file.openFile(Program.save.FileName, FileMode.Create))
         {
             myID3v1tag.writeID3v1();
             file.writeAllBytes(myID3v1tag.getOutput());
         }
     }
 }
Esempio n. 4
0
 public ID3v1tag(Form1 f, myFile file, bool isPresent)
 {
     myForm          = f;
     sourceData      = file.getAllBytes();
     alreadyHasID3v1 = isPresent;
 }