Example #1
0
    private void TableGUI()
    {
        GUILayout.Space(10);
        GUILayout.BeginVertical();
        _tableScrollVec = GUILayout.BeginScrollView(_tableScrollVec, false, false);
        for (int i = 0; i < _exportDtoList.Count; i++)
        {
            ExportDto dto = _exportDtoList[i];
            GUILayout.BeginHorizontal("GroupBox");
            GUILayout.Label(dto.CurrentConfig.TableName, GUILayout.Width(180));

            GUILayout.Label(LanguageUtils.ExportDataCount(dto.Count));
            if (GUILayout.Button(LanguageUtils.ExportImport, GUILayout.Width(50)))
            {
                ImportData(dto);
            }
            if (GUILayout.Button(LanguageUtils.ExportHead, GUILayout.Width(50)))
            {
                ExportData(dto);
            }
            GUILayout.EndHorizontal();
        }
        GUILayout.EndScrollView();
        GUILayout.EndVertical();
    }