private void txtBarCode_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { ControllerPack.AddSimple(); } }
protected void InitializeControllerPack <T>() where T : ControllerPack { GameObject obj = new GameObject(nameof(controllerPack), typeof(T)); obj.transform.SetParent(transform); controllerPack = obj.GetComponent <T>(); controllerPack.controlledCharacter = this; controllerPack.OnInitialize(); }
private void tsbDelAll_Click(object sender, EventArgs e) { ControllerPack.DelSimpleAll(); }
private void tsbNewPack_Click(object sender, EventArgs e) { ControllerPack.NewPack(); }
private void tsbQuery_Click(object sender, EventArgs e) { ControllerPack.Query(); }
private void frmPack_Load(object sender, EventArgs e) { ControllerPack.Init(); }
private void tsbSave_Click(object sender, EventArgs e) { ControllerPack.CompletePack(1, true); }