本文整理汇总了C#中IProjectService类的典型用法代码示例。如果您正苦于以下问题:C# IProjectService类的具体用法?C# IProjectService怎么用?C# IProjectService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IProjectService类属于命名空间,在下文中一共展示了IProjectService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CognateIdentifierOptionsViewModel
public CognateIdentifierOptionsViewModel(SegmentPool segmentPool, IProjectService projectService, EMSoundChangeInducerOptionsViewModel em,
LexStatOptionsViewModel lexStat)
: base("Cognacy", "Method", em, lexStat)
{
_segmentPool = segmentPool;
_projectService = projectService;
}
示例2: ProjectsController
public ProjectsController(IProjectService projectService, IDictionaryService dictionaryService, ISprintService spirntService, ApplicationUserManager applicationUserManager)
{
_projectService = projectService;
_dictionaryService = dictionaryService;
_sprintService = spirntService;
_applicationUserManager = applicationUserManager;
}
示例3: HierarchicalGraphViewModel
public HierarchicalGraphViewModel(IProjectService projectService, IImageExportService exportService, IGraphService graphService)
: base("Hierarchical Graph")
{
_projectService = projectService;
_exportService = exportService;
_graphService = graphService;
_projectService.ProjectOpened += _projectService_ProjectOpened;
Messenger.Default.Register<ComparisonPerformedMessage>(this, msg =>
{
if (_projectService.AreAllVarietiesCompared)
Graph = _graphService.GenerateHierarchicalGraph(_graphType, _clusteringMethod, _similarityMetric);
});
Messenger.Default.Register<DomainModelChangedMessage>(this, msg =>
{
if (msg.AffectsComparison)
Graph = null;
});
Messenger.Default.Register<PerformingComparisonMessage>(this, msg => Graph = null);
TaskAreas.Add(new TaskAreaCommandGroupViewModel("Graph type",
new TaskAreaCommandViewModel("Dendrogram", new RelayCommand(() => GraphType = HierarchicalGraphType.Dendrogram)),
new TaskAreaCommandViewModel("Tree", new RelayCommand(() => GraphType = HierarchicalGraphType.Tree))));
TaskAreas.Add(new TaskAreaCommandGroupViewModel("Clustering method",
new TaskAreaCommandViewModel("UPGMA", new RelayCommand(() => ClusteringMethod = ClusteringMethod.Upgma)),
new TaskAreaCommandViewModel("Neighbor-joining", new RelayCommand(() => ClusteringMethod = ClusteringMethod.NeighborJoining))));
TaskAreas.Add(new TaskAreaCommandGroupViewModel("Similarity metric",
new TaskAreaCommandViewModel("Lexical", new RelayCommand(() => SimilarityMetric = SimilarityMetric.Lexical)),
new TaskAreaCommandViewModel("Phonetic", new RelayCommand(() => SimilarityMetric = SimilarityMetric.Phonetic))));
TaskAreas.Add(new TaskAreaItemsViewModel("Other tasks",
new TaskAreaCommandViewModel("Export graph", new RelayCommand(Export, CanExport))));
_graphType = HierarchicalGraphType.Dendrogram;
}
示例4: XmlFormatterFeature
public XmlFormatterFeature(IProjectService projectService, FeatureSet featureSet)
: base(projectService)
{
this.none = new FeatureItem(
"None",
"None",
"Removes the XML formatter.",
featureSet == FeatureSet.Mvc6 ? 1 : 3)
{
IsSelected = featureSet == FeatureSet.Mvc6
};
this.Items.Add(none);
this.dataContractSerializer = new FeatureItem(
"DataContractSerializer",
"DataContractSerializer",
"Include an XML input and output formatter using the DataContractSerializer.",
featureSet == FeatureSet.Mvc6 ? 2 : 1)
{
IsSelected = featureSet == FeatureSet.Mvc6Api
};
this.Items.Add(dataContractSerializer);
this.xmlSerializer = new FeatureItem(
"XmlSerializer",
"XmlSerializer",
"Include an XML input and output formatter using the XmlSerializer.",
featureSet == FeatureSet.Mvc6 ? 3 : 2);
this.Items.Add(xmlSerializer);
}
示例5: ProjectsController
public ProjectsController(IProjectService projectService,
ILogger logger)
{
_projectService = projectService;
_projectService.UserManager = UserManager;
_logger = logger;
}
示例6: PoorMansAffixIdentifierViewModel
public PoorMansAffixIdentifierViewModel(SpanFactory<ShapeNode> spanFactory, SegmentPool segmentPool, IProjectService projectService)
: base("Automatic stemmer", "Input-Settings#automatic-stemmer")
{
_spanFactory = spanFactory;
_segmentPool = segmentPool;
_projectService = projectService;
}
示例7: ProjectController
//, UserBaseRepository userStore)
public ProjectController(IProjectService projectService, IUserService userService, IProjectTypeRepository projectTypeService)
{
_projectService = projectService;
_userService = userService;
_projectTypeService = projectTypeService;
_logger = LogManager.Instance;
}
示例8: NodeDetailsViewModel
public NodeDetailsViewModel( IEventAggregator eventAggregator, IProjectService<Project> projectService )
{
myProjectService = projectService;
eventAggregator.GetEvent<NodeSelectedEvent>().Subscribe( node => SetNode( node ) );
eventAggregator.GetEvent<NodeActivatedEvent>().Subscribe( node => ActivateNode( node ) );
}
示例9: WordListsViewModel
public WordListsViewModel(IProjectService projectService, IDialogService dialogService, IImportService importService,
IExportService exportService, IAnalysisService analysisService, WordListsVarietyViewModel.Factory varietyFactory)
: base("Word lists")
{
_projectService = projectService;
_dialogService = dialogService;
_importService = importService;
_exportService = exportService;
_analysisService = analysisService;
_varietyFactory = varietyFactory;
Messenger.Default.Register<SwitchViewMessage>(this, HandleSwitchView);
Messenger.Default.Register<DomainModelChangedMessage>(this, HandleDomainModelChanged);
_projectService.ProjectOpened += _projectService_ProjectOpened;
_findCommand = new RelayCommand(Find);
TaskAreas.Add(new TaskAreaItemsViewModel("Common tasks",
new TaskAreaCommandViewModel("Add a new variety", new RelayCommand(AddNewVariety)),
new TaskAreaCommandViewModel("Add a new meaning", new RelayCommand(AddNewMeaning)),
new TaskAreaCommandViewModel("Find words", _findCommand),
new TaskAreaCommandViewModel("Import word lists", new RelayCommand(Import))));
TaskAreas.Add(new TaskAreaItemsViewModel("Other tasks",
new TaskAreaCommandViewModel("Export word lists", new RelayCommand(Export, CanExport)),
new TaskAreaCommandViewModel("Remove affixes from words in all varieties", new RelayCommand(RunStemmer, CanRunStemmer))));
_addNewVarietyCommand = new RelayCommand(AddNewVariety);
_addNewMeaningCommand = new RelayCommand(AddNewMeaning);
_importWordListsCommand = new RelayCommand(Import);
_showGettingStartedCommand = new RelayCommand(ShowGettingStarted);
_isEmpty = true;
}
示例10: Create
public static ProjectTermPredefinedTermsViewModel Create(SquareContext db, IProjectService projectService, int projectStepId, int projectId, string loginId)
{
Check.Require(db != null, "Square Entities is required.");
Check.Require(projectService != null, "projectService is required.");
Check.Require(loginId != null, "loginId is required.");
var viewModel = new ProjectTermPredefinedTermsViewModel()
{
ProjectStep = db.ProjectSteps.Include("Step").Include("Step.SquareType").Where(a => a.Id == projectStepId).Single(),
Project = db.Projects.Where(a => a.Id == projectId).Single()
};
// load the project step
var projectStep = viewModel.ProjectStep;
// load all terms used in project
var projectTerms = db.ProjectTerms.Where(a => a.Project.Id == projectId && a.SquareType.Id == projectStep.Step.SquareType.Id).ToList();
// load all terms
var pt = projectTerms.Select(a => a.Term).ToList();
// terms that have not been used
var predefinedTerms = db.Terms.Include("Definitions").Where(a => !pt.Contains(a.Name) && a.IsActive && a.SquareType.Id == projectStep.Step.SquareType.Id).ToList();
viewModel.PredefinedTerms = predefinedTerms;
return viewModel;
}
示例11: JsonFormatterFeature
public JsonFormatterFeature(IProjectService projectService)
: base(projectService)
{
this.camelCase = new FeatureItem(
"CamelCase",
"Camel-Case (e.g. camelCase)",
"The first character of the variable starts with a lower-case. Each word in the variable name after that starts with an upper-case character.",
1)
{
IsSelected = true
};
this.Items.Add(this.camelCase);
this.titleCase = new FeatureItem(
"TitleCase",
"Title Case (e.g. TitleCase)",
"Each word in the variable name starts with an upper-case character.",
2);
this.Items.Add(this.titleCase);
this.none = new FeatureItem(
"None",
"None",
"Removes the JSON formatter.",
3);
this.Items.Add(none);
}
示例12: VarietiesViewModel
public VarietiesViewModel(IProjectService projectService, IDialogService dialogService, IAnalysisService analysisService, VarietiesVarietyViewModel.Factory varietyFactory)
: base("Varieties")
{
_projectService = projectService;
_dialogService = dialogService;
_analysisService = analysisService;
_varietyFactory = varietyFactory;
_projectService.ProjectOpened += _projectService_ProjectOpened;
_sortPropertyName = "Meaning.Gloss";
_sortDirection = ListSortDirection.Ascending;
Messenger.Default.Register<SwitchViewMessage>(this, HandleSwitchView);
_findCommand = new RelayCommand(Find);
TaskAreas.Add(new TaskAreaItemsViewModel("Common tasks",
new TaskAreaCommandViewModel("Add a new variety", new RelayCommand(AddNewVariety)),
new TaskAreaCommandViewModel("Rename variety", new RelayCommand(RenameSelectedVariety, CanRenameSelectedVariety)),
new TaskAreaCommandViewModel("Remove variety", new RelayCommand(RemoveSelectedVariety, CanRemoveSelectedVariety)),
new TaskAreaCommandViewModel("Find words", _findCommand),
new TaskAreaItemsViewModel("Sort words by", new TaskAreaCommandGroupViewModel(
new TaskAreaCommandViewModel("Gloss", new RelayCommand(() => SortWordsBy("Meaning.Gloss", ListSortDirection.Ascending))),
new TaskAreaCommandViewModel("Form", new RelayCommand(() => SortWordsBy("StrRep", ListSortDirection.Ascending)))))));
TaskAreas.Add(new TaskAreaItemsViewModel("Other tasks",
new TaskAreaCommandViewModel("Remove affixes from words", new RelayCommand(RunStemmer, CanRunStemmer))));
}
示例13: ExpenditureController
public ExpenditureController(IOutTypeService OutTypeService, IOutAccountService OutAccountService, IProjectService ProjectService, ICustomerService CustomerService)
{
_OutTypeService = OutTypeService;
_OutAccountService = OutAccountService;
_ProjectService = ProjectService;
_CustomerService = CustomerService;
}
示例14: SetRandomPortsFeature
public SetRandomPortsFeature(
IPortService portService,
IProjectService projectService)
: base(projectService)
{
this.portService = portService;
}
示例15: FrontEndFrameworkFeature
public FrontEndFrameworkFeature(IProjectService projectService)
: base(projectService,
new IFeatureItem[]
{
new FeatureItem(
"Bootstrap",
"Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.",
1,
"/Boilerplate.Wizard;component/Assets/Bootstrap.png")
{
IsSelected = true
},
new FeatureItem(
"Zurb Foundation",
"The most advanced responsive front-end framework in the world.",
2,
"/Boilerplate.Wizard;component/Assets/Zurb Foundation.png",
true),
new FeatureItem(
"Semantic UI",
"Semantic is a development framework that helps create beautiful, responsive layouts using human-friendly HTML.",
3,
"/Boilerplate.Wizard;component/Assets/Semantic UI.png",
true)
})
{
}