示例#1
0
 public void Initialize()
 {
     OpenConnections();
     Users      = new UsersTable(this);
     Notes      = new NotesTable(this);
     UserEvents = new UserEventsTable(this);
     Insurances = new InsurancesTable(this);
     Events     = new EventsTable(this);
 }
 private void NotesTable_OnItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem != null)
     {
         EditNoteCard edit = EditCardPanel;
         edit.DeleteVisible(true);
         var data = e.ClickedItem as NoteObject;
         if (data != null)
         {
             edit.Note           = data;
             edit.AttachedFlyout = EditCardFlyout;
             DependencyObject container = NotesTable.ContainerFromItem(data);
             EditCardFlyout.ShowAt(container as FrameworkElement);
         }
     }
 }
示例#3
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);
        }
 public void UpdateTable()
 {
     NotesTable.UpdateLayout();
 }