/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/SearchType.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/SearchType.cs

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

--- trunk/RomCheater/Docking/MemorySearch/SearchType.cs	2013/06/05 00:47:13	514
+++ trunk/RomCheater/Docking/MemorySearch/SearchType.cs	2013/06/05 02:02:08	515
@@ -44,7 +44,7 @@
             : this(_data_type, _is_unsigned, _compare_type, _compare_value_type, value, null, null)
         {
         }
-        public SearchType(SearchDataTypes _data_type, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, object start_value, object end_value, ProgressBarWithPercentageLabel _progress_logger)
+        public SearchType(SearchDataTypes _data_type, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, object start_value, object end_value, CustomProgressBar _progress_logger)
         {
             this.DataType = _data_type;
             this.IsUnsignedDataType = _is_unsigned;
@@ -61,7 +61,7 @@
             : this(start_value, end_value, _is_unsigned, _compare_type, _compare_value_type, null)
         {
         }
-        public SearchType(byte start_value, byte end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, ProgressBarWithPercentageLabel _progress_logger)
+        public SearchType(byte start_value, byte end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, CustomProgressBar _progress_logger)
             : this((ulong)start_value, (ulong)end_value, _is_unsigned, _compare_type, _compare_value_type, _progress_logger)
         {
             this.DataType = SearchDataTypes._8bits;
@@ -73,7 +73,7 @@
             : this(start_value, end_value, _is_unsigned, _compare_type, _compare_value_type, null)
         {
         }
-        public SearchType(ushort start_value, ushort end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, ProgressBarWithPercentageLabel _progress_logger)
+        public SearchType(ushort start_value, ushort end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, CustomProgressBar _progress_logger)
             : this((ulong)start_value, (ulong)end_value, _is_unsigned, _compare_type, _compare_value_type, _progress_logger)
         {
             this.DataType = SearchDataTypes._16bits;
@@ -85,7 +85,7 @@
             : this(start_value, end_value, _is_unsigned, _compare_type, _compare_value_type, null)
         {
         }
-        public SearchType(uint start_value, uint end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, ProgressBarWithPercentageLabel _progress_logger)
+        public SearchType(uint start_value, uint end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, CustomProgressBar _progress_logger)
             : this((ulong)start_value, (ulong)end_value, _is_unsigned, _compare_type, _compare_value_type, _progress_logger)
         {
             this.DataType = SearchDataTypes._32bits;
@@ -97,7 +97,7 @@
             : this(start_value, end_value, _is_unsigned, _compare_type, _compare_value_type, null)
         {
         }
-        public SearchType(ulong start_value, ulong end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, ProgressBarWithPercentageLabel _progress_logger)
+        public SearchType(ulong start_value, ulong end_value, bool _is_unsigned, SearchCompareTypes _compare_type, CompareValueTypes _compare_value_type, CustomProgressBar _progress_logger)
         {
             this.DataType = SearchDataTypes._64bits;
             this.IsUnsignedDataType = _is_unsigned;
@@ -116,7 +116,7 @@
         private CompareValueTypes _CompareValueType;
         private object _CompareStartValue;
         private object _CompareEndValue;
-        private ProgressBarWithPercentageLabel _ProgressLogger;
+        private CustomProgressBar _ProgressLogger;
 
         private bool _IsFirstSearch;
         //private List<ResultType<object>> _Results = new List<ResultType<object>>();
@@ -129,7 +129,15 @@
         public object CompareStartValue { get { return _CompareStartValue; } set { _CompareStartValue = value; } }
         public object CompareEndValue { get { return _CompareEndValue; } set { _CompareEndValue = value; } }
 
-        public ProgressBarWithPercentageLabel ProgressLogger { get { return _ProgressLogger; } set { if (value != null) value.ShowPercentageLabel = true; _ProgressLogger = value; } }
+        public CustomProgressBar ProgressLogger
+        {
+            get { return _ProgressLogger; }
+            set
+            {
+                if (value != null) value.ShowPercentageLabel = true; 
+                _ProgressLogger = value;
+            }
+        }
 
         public bool IsFirstSearch { get { return _IsFirstSearch; } set { _IsFirstSearch = value; } }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22