コード例 #1
0
        internal static void Add(string[] content)
        {
            Group group = GetGroup(content[0]);

            content = UserTools.RemoveFirst(content);

            group.Info.Add(new Information(content));
        }
コード例 #2
0
        internal static void LoadFile(string id)
        {
            string input = File.ReadAllText(id);

            string[] sqbr = input.Split('[');
            sqbr = UserTools.RemoveFirst(sqbr);

            string[] crbr = sqbr[0].Split('{');
            crbr = UserTools.RemoveFirst(crbr);

            foreach (var text in crbr)
            {
                string[] words = text.Split('|');

                try
                {
                    Group group = GroupTools.GetGroup(id);
                    group.Info.Add(new Information(words));
                }
                catch
                {
                }
            }
        }