Beispiel #1
0
        private void WriteFirstuser(AllDataFromDB_YM first)
        {
            var    file  = new StreamWriter("test1.txt", true);
            string count = "[BC]" + first.count.ToString();

            file.WriteLine(count);
            string user = "******" + first.user.name + "|" + first.user.ling + "]";

            file.WriteLine(user);
            string work = "[" + first.work.name + "|" + first.work.ling + "]";

            file.WriteLine(work);
            file.Close();
        }
Beispiel #2
0
        private void SetInfoInFile(AllDataFromDB_YM prev, AllDataFromDB_YM next)
        {
            var file = new StreamWriter("test1.txt", true);

            if (next.count != prev.count)
            {
                string count = "[BC]" + next.count.ToString();
                file.WriteLine(count);
            }
            if (next.user.ling != prev.user.ling)
            {
                string user = "******" + next.user.name + "|" + next.user.ling + "]";
                file.WriteLine(user);
            }
            string work = "[" + next.work.name + "|" + next.work.ling + "]";

            file.WriteLine(work);
            file.Close();
        }