Пример #1
0
        protected override void RecvData()
        {
            dataGridView.DataSource = null;
            dataGridView.Invalidate();

            var row = parent.CurrentCell?.OwningRow;

            if (row == null)
            {
                return;
            }

            var kind = (byte)row.Cells["Kind"]?.Value;
            var idx  = func(row);

            if (idx < 9000000 && idx >= 8000000)
            {
                idx += 4000000;
            }



            base.RecvData();

            var objinf = (Owner as ItemViewer).objectinfo.Single(x => x.Name == idx.ToString("D8")).Data as object[];

            var table = ObjectInfoFormatter.GetSchema("data");

            foreach (var r in objinf[1] as object[])
            {
                table.Add((r as object[])[0] as object[], (r as object[])[1]);
            }

            dataGridView.DataSource = table;
        }
Пример #2
0
        protected override void RecvData()
        {
            base.RecvData();

            var table = ObjectInfoFormatter.GetSchema("effects");

            var tag = parent.Effects;

            if (tag == null)
            {
                return;
            }

            foreach (var row in tag)
            {
                table.Rows.Add(row as object[]);
            }

            dataGridView.DataSource = table;

            dataGridView_SlectionChanged(null, null);
        }