Esempio n. 1
0
 public ConflictCheckerForm(IList <AsmPatch> patchList, FreeSpaceMode mode)
 {
     InitializeComponent();
     this.origPatchList     = patchList;
     this.conflictPatchData = ConflictHelper.CheckConflicts(patchList, mode);
     FindPatchColors(this.conflictPatchData.PatchList);
     ShowPatches(this.conflictPatchData);
 }
Esempio n. 2
0
 public ConflictCheckerForm(List <AsmPatch> patchList)
 {
     InitializeComponent();
     this.origPatchList     = patchList;
     this.conflictPatchData = CheckConflicts(patchList);
     FindPatchColors(this.conflictPatchData.PatchList);
     ShowPatches(this.conflictPatchData);
 }
Esempio n. 3
0
        private void ShowPatches(ConflictCheckResult conflictPatchData)
        {
            lv_Patches.Items.Clear();
            for (int patchIndex = 0; patchIndex < conflictPatchData.PatchList.Count; patchIndex++)
            {
                AsmPatch patch = conflictPatchData.PatchList[patchIndex];
                int      leastConflictPatchIndex = GetLeastConflictPatchIndex(patchIndex, conflictPatchData.ConflictMap[patch]);

                // Patch #, File, Name
                ListViewItem listViewItem = new ListViewItem();
                listViewItem.Text = patchIndex.ToString();
                listViewItem.SubItems.Add(patch.Filename);
                listViewItem.SubItems.Add(patch.Name);
                listViewItem.BackColor = patchColors[leastConflictPatchIndex];
                lv_Patches.Items.Add(listViewItem);
            }

            lv_Patches_columnHeader_Name.AutoResize(System.Windows.Forms.ColumnHeaderAutoResizeStyle.ColumnContent);
        }