public ClassPreviewViewModel(TableInfoViewModel sourceElement, SqlEntityCreatorViewModel compilerInfos) { _compilerInfos = compilerInfos; SourceElement = sourceElement; this.HightlightProvider = HighlightingManager.Instance.GetDefinition("C#"); Refresh(); }
public TableInfoViewModel(ITableInfoModel sourceElement, SqlEntityCreatorViewModel compilerOptions) { _compilerOptions = compilerOptions; SourceElement = sourceElement; CreatePreviewCommand = new DelegateCommand(CreatePreviewExecute, CanCreatePreviewExecute); AddColumnCommand = new DelegateCommand(AddColumnExecute, CanAddColumnExecute); RemoveColumnCommand = new DelegateCommand(RemoveColumnExecute, CanRemoveColumnExecute); ColumnInfoModels = new ThreadSaveObservableCollection <ColumnInfoViewModel>(); Refresh(); }
public MainWindowViewModel() { SelectedProvider = new MsSQL.ViewModel.SqlEntityCreatorViewModel(); }