Exemple #1
0
        private static void TestCharacterDocument()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CharacterDocument doc = CharacterDocument.LoadForTest(HOMEDIR + "Executable\\characterdocumenttest1.txt");
            CharacterDocumentViewerContainer f = new CharacterDocumentViewerContainer(doc);

            Application.Run(f);
        }
Exemple #2
0
        public DummySession()
        {
            _caption = String.Format("dummy {0}", _count);
            //_document = CharacterDocument.SingleLine(String.Format("document {0}", _count));
            _document = new CharacterDocument();
            _document.LoadForTest(@"C:\P4\doc\test\characterdocument.txt");

            _count++;
            _document.SetOwner(this);
            _icon = null;

            _document.Caption = _caption;
        }