Changeset 522
- Timestamp:
- 11/12/2008 4:08:31 PM (5 years ago)
- Location:
- branches/eraser6
- Files:
-
- 2 added
- 4 edited
-
DefaultPlugins/CustomMethodEditorForm.cs (modified) (2 diffs)
-
Installer (modified) (1 prop)
-
Installer/Eraser.wxs (modified) (2 diffs)
-
Installer/Installer.wixproj (modified) (1 diff)
-
Installer/Resources/Banner.bmp (added)
-
Installer/Resources/Dialog.bmp (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/DefaultPlugins/CustomMethodEditorForm.cs
r508 r522 138 138 private static byte[] ParseConstantStr(string text, bool parseHex) 139 139 { 140 if (parseHex) 141 { 142 List<byte> passConstantList = new List<byte>(); 143 string str = text.Replace(" ", "").ToUpper(); 144 145 for (int i = 0, j = str.Length - 2; i < j; i += 2) 146 passConstantList.Add(Convert.ToByte(str.Substring(i, 2), 16)); 147 passConstantList.Add(Convert.ToByte(str.Substring(str.Length - 2), 16)); 148 140 List<byte> passConstantList = new List<byte>(); 141 try 142 { 143 if (parseHex) 144 { 145 string str = text.Replace(" ", "").ToUpper(); 146 147 for (int i = 0, j = str.Length - 2; i < j; i += 2) 148 passConstantList.Add(Convert.ToByte(str.Substring(i, 2), 16)); 149 passConstantList.Add(Convert.ToByte(str.Substring(str.Length - 2), 16)); 150 151 byte[] result = new byte[passConstantList.Count]; 152 passConstantList.CopyTo(result); 153 return result; 154 } 155 } 156 catch (FormatException ex) 157 { 158 MessageBox.Show(ex.Message, 159 "Invalid input string", 160 MessageBoxButtons.OK, MessageBoxIcon.Error); 161 162 // return as much as we could comprehend 149 163 byte[] result = new byte[passConstantList.Count]; 150 164 passConstantList.CopyTo(result); 151 165 return result; 152 166 } 153 else 154 { 155 return Encoding.UTF8.GetBytes(text); 156 } 167 168 return Encoding.UTF8.GetBytes(text); 157 169 } 158 170 … … 167 179 private static string DisplayConstantArray(byte[] array, bool asHex) 168 180 { 169 if (asHex) 170 { 171 StringBuilder displayText = new StringBuilder(); 172 foreach (byte b in array) 173 displayText.Append(string.Format("{0,2} ", Convert.ToString(b, 16))); 174 return displayText.ToString(); 181 try 182 { 183 if (asHex) 184 { 185 StringBuilder displayText = new StringBuilder(); 186 foreach (byte b in array) 187 displayText.Append(string.Format("{0,2} ", Convert.ToString(b, 16))); 188 return displayText.ToString(); 189 } 190 } 191 catch (FormatException ex) 192 { 193 MessageBox.Show(ex.Message, 194 "Invalid input string", 195 MessageBoxButtons.OK, MessageBoxIcon.Error); 175 196 } 176 197 -
branches/eraser6/Installer
- Property svn:ignore
-
old new 1 1 obj 2 *.user
-
- Property svn:ignore
-
branches/eraser6/Installer/Eraser.wxs
r520 r522 26 26 <Package InstallerVersion="200" Compressed="yes" /> 27 27 <Media Id="1" Cabinet="Installer.cab" EmbedCab="yes" /> 28 29 <Condition Message='This setup requires the .NET Framework 2.0 or higher.'> 30 <![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]> 31 </Condition> 28 32 29 33 <Directory Id="TARGETDIR" Name="SourceDir"> … … 100 104 <UIRef Id="WixUI_ErrorProgressText" /> 101 105 <WixVariable Id="WixUILicenseRtf" Value="License.rtf" /> 106 <WixVariable Id="WixUIBannerBmp" Value="Resources\Banner.bmp" /> 107 <WixVariable Id="WixUIDialogBmp" Value="Resources\Dialog.bmp" /> 102 108 <WixVariable Id="WixUIExclamationIco" Value="Resources\Exclamation.ico" /> 103 109 <WixVariable Id="WixUIInfoIco" Value="Resources\Information.ico" /> -
branches/eraser6/Installer/Installer.wixproj
r520 r522 30 30 <ItemGroup> 31 31 <Content Include="License.rtf" /> 32 <Content Include="Resources\Exclamation.ico" /> 33 <Content Include="Resources\Information.ico" /> 34 <Content Include="Resources\New Folder.ico" /> 35 </ItemGroup> 36 <ItemGroup> 37 <Folder Include="Resources\" /> 32 38 </ItemGroup> 33 39 <Import Project="$(WixTargetsPath)" />
Note: See TracChangeset
for help on using the changeset viewer.
