Example #1
0
        private void CreateScene()
        {
            NPersistencyManager manager  = new NPersistencyManager();
            NDrawingDocument    document = manager.LoadDrawingFromFile(Server.MapPath("~\\App_Data\\FlowDiagram.ndx"));

            DrawingView.Document = document;
            document.BeginInit();
            CreateAnimatedGrid(5, 5, 1);
            document.EndInit();
        }
        private void InitDocument()
        {
            NPersistencyManager manager = new NPersistencyManager();

            document = manager.LoadDrawingFromFile(Path.Combine(Application.StartupPath, @"..\..\Resources\Data\FlowDiagram.ndx"));

            view.Document = document;
            Form.Document = document;

            document.BeginInit();
            CreateAnimatedGrid(5, 5, 1);
            document.EndInit();
        }