Example #1
0
        void LbIactIndexSelectedIndexChanged(object sender, EventArgs e)
        {
            if (lbIactIndex.SelectedIndex < 0 || lbIactIndex.SelectedIndex >= zone.Iacts.Length)
                return;

            iact = zone.Iacts[lbIactIndex.SelectedIndex];
            /*
            int iact4 = iact.Raw[4] + iact.Raw[5] * 0x100;
            label1.Text = string.Format("real len: {0}, iact[4]: {1}, diff: {2}",
                                        iact.Raw.Length, iact4, iact.Raw.Length - iact4);
            tbHex.Text = ToHex(iact.Raw);
            tbAnsi.Text = ToAnsi(iact.Raw);
             */
            tbHex.Text = iact.ToString();
        }
Example #2
0
File: Zone.cs Project: a-kr/jsyoda
        private void ReadIacts(YodaReader stream)
        {
            List<Iact> iacts = new List<Iact>();

            while (stream.CurrentPosContains("IACT")) {
                var iact = new Iact();
                iact.Deserialize(stream);
                iacts.Add(iact);
            }

            this.Iacts = iacts.ToArray();

            // TODO read PUZ2, IPUZ
        }