예제 #1
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     try
     {
         string s = toolStripTextBox4.Text.Trim();
         s = s.Replace(" ", "");
         MemoryStream m = new MemoryStream();
         for (int i = 0; i < 4; i++)
         {
             m.WriteByte(Convert.ToByte(s.Substring((3 - i) * 2, 2), 16));
         }
         toolStripTextBox5.Text = Blaze.TagToLabel(BitConverter.ToUInt32(m.ToArray(), 0));
     }
     catch { }
 }
예제 #2
0
        private void convertListOfTagsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog d = new OpenFileDialog();

            d.Filter = "*.txt|*.txt";
            if (d.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string[]      lines = File.ReadAllLines(d.FileName);
                StringBuilder sb    = new StringBuilder();
                foreach (string line in lines)
                {
                    sb.AppendLine(Blaze.TagToLabel(Convert.ToUInt32(line, 16)));
                }
                MessageBox.Show(sb.ToString());
                Clipboard.SetText(sb.ToString());
            }
        }
예제 #3
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            string s = toolStripTextBox1.Text.Replace(" ", "");

            if (s.Length != 6)
            {
                return;
            }
            string      v   = s + "00";
            List <byte> tmp = new List <byte>(Blaze.StringToByteArray(v));

            tmp.Reverse();
            uint   val   = BitConverter.ToUInt32(tmp.ToArray(), 0);
            string label = Blaze.TagToLabel(val);

            toolStripTextBox2.Text = label;
        }