/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 275 by william, Sun Jun 3 22:01:05 2012 UTC revision 277 by william, Sun Jun 3 22:30:23 2012 UTC
# Line 70  namespace RomCheater.Docking Line 70  namespace RomCheater.Docking
70              PATCH_RESULTS_LIST = 0x3001,              PATCH_RESULTS_LIST = 0x3001,
71              UKNOWN_RESULTS_LIST = 0x3001              UKNOWN_RESULTS_LIST = 0x3001
72          }          }
73            SearchType SearchArgs;
74          static int col_Found_Address = 1;          static int col_Found_Address = 1;
75          static int col_Found_Value = 2;          static int col_Found_Value = 2;
76          static int col_Found_Frozen = 3;          static int col_Found_Frozen = 3;
# Line 985  namespace RomCheater.Docking Line 986  namespace RomCheater.Docking
986                  OnBrowseMemoryRegion(new BrowseMemoryRegionEvent(rdt.Address));                  OnBrowseMemoryRegion(new BrowseMemoryRegionEvent(rdt.Address));
987              }              }
988          }          }
989    
990            private void mnuAddedResults_Opening(object sender, CancelEventArgs e)
991            {
992                if (!(lstPatchList.Items.Count > 0)) { mnuItemRemoveResult.Visible = false; e.Cancel = true; }
993                if (!(lstPatchList.Items.Count > 0)) { mnuItemPatchSelectedEntry.Visible = false; e.Cancel = true; }
994                if (e.Cancel) return;
995                if (lstPatchList.Items.Count > 0) mnuItemRemoveResult.Visible = true;
996                if (lstPatchList.Items.Count > 0) mnuItemPatchSelectedEntry.Visible = true;
997    
998                if (!(lstPatchList.Items.Count > 0)) { mnuItemFreezeSelectedPatches.Visible = false; e.Cancel = true; }
999                if (!(lstPatchList.Items.Count > 0)) { mnuItemThawSelectedPatches.Visible = false; e.Cancel = true; }
1000                if (e.Cancel) return;
1001    
1002                if (lstPatchList.Items.Count > 0) mnuItemFreezeSelectedPatches.Visible = true;
1003                if (lstPatchList.Items.Count > 0) mnuItemThawSelectedPatches.Visible = true;
1004    
1005                if (lstPatchList.SelectedItems.Count == 0) e.Cancel = true;
1006                if (e.Cancel) return;
1007    
1008            }
1009    
1010            private void mnuResults_Opening(object sender, CancelEventArgs e)
1011            {
1012                if (!(lstResults.Items.Count > 0)) e.Cancel = true;
1013                if (lstResults.SelectedItems.Count == 0) e.Cancel = true;
1014                if (SearchArgs == null) e.Cancel = true;
1015                if (e.Cancel) return;
1016            }
1017      }      }
1018  }  }

Legend:
Removed from v.275  
changed lines
  Added in v.277

  ViewVC Help
Powered by ViewVC 1.1.22