mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-03-26 19:55:10 -05:00
Workaround LAST_INSERT_ID and CAST limitations by making all primary keys unsigned bigint. Workaround LAST_INSERT_ID signed/unsigned inconsistency between 5.5 and 5.6 by using Convert.ToUInt64 instead of casts.
30 lines
892 B
C#
30 lines
892 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using PkmnFoundations.Structures;
|
|
|
|
namespace PkmnFoundations.GTS.test
|
|
{
|
|
public partial class VideoId : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
protected void btnToSerial_Click(object sender, EventArgs e)
|
|
{
|
|
ulong valueNumeric = Convert.ToUInt64(txtBattleVideo.Text.Replace("-", ""));
|
|
txtSerial.Text = BattleVideoHeader4.SerialToKey(valueNumeric).ToString();
|
|
}
|
|
|
|
protected void btnToVideo_Click(object sender, EventArgs e)
|
|
{
|
|
ulong valueNumeric = Convert.ToUInt64(txtSerial.Text.Replace("-", ""));
|
|
txtBattleVideo.Text = BattleVideoHeader4.KeyToSerial(valueNumeric).ToString();
|
|
}
|
|
}
|
|
} |