public void OnFilesRemoved(IList <WixSourceFileNode> files)
 {
     if (FilesRemoved != null)
     {
         EventArgsFiles ef = new EventArgsFiles(files);
         FilesRemoved(this, ef);
     }
 }
        void treeView1_FilesRemoved(object sender, EventArgs e)
        {
            EventArgsFiles ef = (EventArgsFiles)e;

            for (int k = 0; k < ef.Files.Count; k++)
            {
                for (int i = 0; i < checkedListBox1.Items.Count; i++)
                {
                    WixSourceFileNode f = checkedListBox1.Items[i] as WixSourceFileNode;
                    if (f != null)
                    {
                        if (string.Compare(ef.Files[k].Filename, f.Filename, StringComparison.OrdinalIgnoreCase) == 0)
                        {
                            checkedListBox1.Items.Remove(f);
                            break;
                        }
                    }
                }
            }
            OnPropertyChanged();
        }