private void btnLoad_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            dialog.InitialDirectory = tempSavePath;
            dialog.DefaultExt       = ".pmf";
            dialog.Filter           = "Partial Movie File|*.pmf";
            dialog.AddExtension     = true;
            dialog.ShowDialog();

            if (!System.IO.File.Exists(dialog.FileName))
            {
                MessageBox.Show("File does not exist."); return;
            }

            MovieZone z = new MovieZone();

            z.name   = dialog.SafeFileName;
            z.start  = 0;
            z.bytes  = System.IO.File.ReadAllBytes(dialog.FileName);
            z.length = BitConverter.ToInt32(z.bytes, 0);

            zones.Add(z);
            listZones.Items.Add(z.getStr());
        }
 private void txtNameZone_TextChanged(object sender, EventArgs e)
 {
     if (AutoChange || listZones.SelectedIndex == -1)
     {
         return;
     }
     AutoChange = true;
     cZone.name = txtNameZone.Text;
     listZones.Items[listZones.SelectedIndex] = cZone.getStr();
     AutoChange = false;
 }