Пример #1
0
        public void WriteExample2()
        {
            SecurityCenterDocument2 doc2 = new SecurityCenterDocument2();

            doc2.LastUpdatedDate = DateTime.Now;

            doc2.AddNote(new Note2()
            {
                Name = "测试", Notes = "中文测试 abc", Tags = "测试,123,abc"
            });
            doc2.AddNote(new Note2()
            {
                Name = "测试2", Notes = "中文测试 abc 222", Tags = "测试,222"
            });
            doc2.AddNote(new Note2()
            {
                Name = "长文本", Notes = longTxt, Tags = ""
            });

            Doc2IO io = new Doc2IO();

            io.Save(doc2, "doc2_test.dat", "123");
        }
Пример #2
0
 public void LoadExample2WithWrongPwd()
 {
     SecurityCenterDocument2 doc2 = new Doc2IO().Load("doc2_test.dat", "12");
 }
Пример #3
0
 public void LoadExample2()
 {
     SecurityCenterDocument2 doc2 = new Doc2IO().Load("doc2_test.dat", "123");
 }