Esempio n. 1
0
        public IndexCreatorViewModel()
        {
            Databases = MainTreeHandler.GetDatabaseSelectItems();
            Tables    = new ObservableCollection <string>();
            Columns   = new ObservableCollection <ColumnItem>();
            Columns.CollectionChanged += CollectionContentChanged;

            createCommand = new DelegateCommand(Create);
        }
Esempio n. 2
0
        public ViewCreatorViewModel()
        {
            IsIfNotExists = true;

            Databases = MainTreeHandler.GetDatabaseSelectItems();
            Tables    = new ObservableCollection <TableTreeItem>();

            createCommand = new DelegateCommand(Create);
        }
Esempio n. 3
0
        public QueryEditorViewModel()
        {
            Databases          = MainTreeHandler.GetDatabaseSelectItems();
            AvailableTemplates = QueryTemplateGenerator.GetAvailableTemplates();
            dataGrid           = new ListCollectionView(new List <object>());

            selectedTemplate = LocalisationHelper.GetString("QueryEditor_Templates");

            executeCommand = new DelegateCommand(Execute);
            saveCommand    = new DelegateCommand(SaveQuery);
            loadCommand    = new DelegateCommand(LoadQuery);
        }
Esempio n. 4
0
        public TableCreatorViewModel()
        {
            Databases             = MainTreeHandler.GetDatabaseSelectItems();
            ColumnDefinitions     = new ObservableCollection <ColumnDefinitionItem>();
            ForeignKeyDefinitions = new ObservableCollection <ForeignKeyDefinitionItem>();

            ColumnDefinitions.CollectionChanged     += CollectionContentChanged;
            ForeignKeyDefinitions.CollectionChanged += CollectionContentChanged;

            addColumnCommand     = new DelegateCommand(AddColumnDefinition);
            addForeignKeyCommand = new DelegateCommand(AddForeignKeyDefinition);
            createCommand        = new DelegateCommand(Create);
        }
Esempio n. 5
0
        public TriggerCreatorViewModel()
        {
            Databases = MainTreeHandler.GetDatabaseSelectItems();

            TriggerEntryPoints = new List <string> {
                "BEFORE", "AFTER", "INSTEAD OF"
            };
            TriggerEvents = new List <string> {
                "DELETE", "INSERT", "UPDATE", "UPDATE OF"
            };

            AvailableTargets           = new ObservableCollection <string>();
            Columns                    = new ObservableCollection <ColumnItem>();
            Columns.CollectionChanged += CollectionContentChanged;

            createCommand = new DelegateCommand(Create);

            UpdateModel();
        }