public GeneratorSqlPostgreViewModel(Project project)
 {
     // TODO: Complete member initialization
     this._project = project;
     this.SqlPath = _project.SqlPath;
     this.ChangeSqlPathCommand = new DelegateCommand(ChangeSqlPathExecute);
     this.GenerateCommand = new DelegateCommand(GenerateExecute);
 }
        public GeneratorCSharpViewModel(Project model)
        {
            this._model = model;
            this.DataNamespace = "Emash.GeoPatNet.Data";
            this.DataPath = @"C:\Users\loic.EMASH\Documents\GitHub\GeoPat\GeoPatNet\Core\Data";

            this.ChangeDataPathCommand = new DelegateCommand(ChangeDataPathExecute);
            this.ChangeDataInfraPathCommand = new DelegateCommand(ChangeDataInfraPathExecute);

            this.GenerateCommand = new DelegateCommand(GenerateExecute);
        }
        public ProjectViewModel(Project model)
        {
            // TODO: Complete member initialization
            this._model = model;
            this.Schemas = new ObservableCollection<DbSchemaViewModel>();

            model.Schemas = (from s in model.Schemas orderby s.DisplayName select s).ToList();
            foreach (DbSchema schema in model.Schemas)
            {
                DbSchemaViewModel vm = new DbSchemaViewModel(schema);
                this.Schemas.Add(vm);
            }
            this.AddMpdCommand = new DelegateCommand(AddMpdExecute, CanAddMpdExecute);
            this.ShowGenerateCSharpCommand = new DelegateCommand(ShowGenerateCSharpExecute, CanShowGenerateCSharpExecute);
            this.ShowGenerateSqlPostgreCommand = new DelegateCommand(ShowGenerateSqlPostgreExecute);
        }