Пример #1
0
 private void btnDisks_Click(object sender, EventArgs e)
 {
     if (EditedTitle != null)
     {
         DiskEditorFrm diskEditor = new DiskEditorFrm(EditedTitle); //.Disks);
         List <Disk>   original   = EditedTitle.Disks.ToList <Disk>();
         diskEditor.ShowDialog();
         int commonCount = EditedTitle.Disks.Intersect(original).Count <Disk>();
         if ((commonCount != EditedTitle.Disks.Count || commonCount != original.Count) ||
             (diskEditor.DiskDirty))
         {
             TitleChanges(null, EventArgs.Empty);
             RefreshEditor();
         }
     }
 }
Пример #2
0
 private void btnDisks_Click(object sender, EventArgs e)
 {
     if (EditedTitle != null)
     {
         DiskEditorFrm diskEditor = new DiskEditorFrm(EditedTitle); //.Disks);
         List<Disk> original = EditedTitle.Disks.ToList<Disk>();
         diskEditor.ShowDialog();
         int commonCount = EditedTitle.Disks.Intersect(original).Count<Disk>();
         if ((commonCount != EditedTitle.Disks.Count || commonCount != original.Count) ||
             (diskEditor.DiskDirty))
         {
             TitleChanges(null, EventArgs.Empty);
             RefreshEditor();
         }
     }
 }