Пример #1
0
        private void B_Table_Click(object sender, EventArgs e)
        {
            var items = files.Select(z => new Move6(z));

            Clipboard.SetText(TableUtil.GetTable(items, movelist));
            System.Media.SystemSounds.Asterisk.Play();
        }
Пример #2
0
        public static string GetTable <T1, T2>(byte[] data) where T1 : class, IFlatBufferArchive <T2> where T2 : class
        {
            var obj   = FlatBufferConverter.DeserializeFrom <T1>(data);
            var table = obj.Table;

            return(TableUtil.GetTable(table));
        }
Пример #3
0
        public string GetSummarySimple()
        {
            var tableID   = TableID.ToString("X16");
            var tableData = TableUtil.GetTable(Entries);

            return(tableID + Environment.NewLine + tableData + Environment.NewLine);
        }
Пример #4
0
        public static string GetTable <T1, T2>(string path) where T1 : class, IFlatBufferArchive <T2> where T2 : class
        {
            var data  = File.ReadAllBytes(path);
            var obj   = FlatBufferConverter.DeserializeFrom <T1>(data);
            var table = obj.Table;

            return(TableUtil.GetTable(table));
        }