private int HexToInt(string shiliu)
{
int shi =0;
try
{
int Int = Convert.ToInt32(shiliu, 16);
shi=Int;
}
catch (Exception Err)
{
MessageBox.Show(Err.Message);
}
return shi;
}
int res = 0;
int i = 0;
foreach(char c int s1)
{
res += int.parse(c) * (16 ^ i);
i++;
}
s2 = res.tostring();