示例#1
0
 private void ShowTSV(object sender, EventArgs e)
 {
     uint TID = Util.ToUInt32(MT_TID.Text);
     uint SID = Util.ToUInt32(MT_SID.Text);
     uint tsv = (TID ^ SID) >> 4;
     Tip1.SetToolTip(MT_TID, $"TSV: {tsv:0000}");
     Tip2.SetToolTip(MT_SID, $"TSV: {tsv:0000}");
 }
示例#2
0
        private void showTSV(object sender, EventArgs e)
        {
            uint TID = Util.ToUInt32(MT_TID.Text);
            uint SID = Util.ToUInt32(MT_SID.Text);
            uint tsv = (TID ^ SID) >> 4;

            Tip1.SetToolTip(MT_TID, "TSV: " + tsv.ToString("0000"));
            Tip2.SetToolTip(MT_SID, "TSV: " + tsv.ToString("0000"));
        }
示例#3
0
        private void showTSV(object sender, EventArgs e)
        {
            SAV.TID = (ushort)Util.ToUInt32(MT_TID.Text);
            SAV.SID = (ushort)Util.ToUInt32(MT_SID.Text);
            int    tsv   = (SAV.TID ^ SAV.SID) >> 4;
            string IDstr = "TSV: " + tsv.ToString("0000");

            if (SAV.Generation > 6) // always true for G7
            {
                IDstr += Environment.NewLine + "G7TID: " + SAV.TrainerID7.ToString("000000");
            }
            Tip1.SetToolTip(MT_TID, IDstr);
            Tip2.SetToolTip(MT_SID, IDstr);
        }