Beispiel #1
0
        public static void Initialize()
        {
            InitializeCors();

            DrawingsTable = getTable("Drawings1");
            if (DrawingsTable != null)
            {
                DrawingsTable.CreateIfNotExists();
            }

            RoomsTable = getTable("Rooms1");
            if (RoomsTable != null)
            {
                RoomsTable.CreateIfNotExists();
            }

            FiguresTable = getTable("dwFigures1");
            if (FiguresTable != null)
            {
                FiguresTable.CreateIfNotExists();
            }

            ChatsTable = getTable("Chats1");
            if (ChatsTable != null)
            {
                ChatsTable.CreateIfNotExists();
            }

            NotesTable = getTable("Notes1");
            if (NotesTable != null)
            {
                NotesTable.CreateIfNotExists();
            }

            PictureContainer   = getContainer("picture1");
            PathBatchContainer = getContainer("pathbatch1");                            // blob name must be lower case.

            BlockPathsPond = new BlockPathsPond();

            Random = new Random();

            FiguresRowPond       = new TableRowPond(FiguresTable);
            FiguresPartitionPond = new TablePartitionPond <FigureInfo>(FiguresTable);
        }