SIL.Cog.Application.ViewModels.ThresholdCognateIdentifierViewModel.Setup C# (CSharp) Method

Setup() public method

public Setup ( ) : void
return void
        public override void Setup()
        {
            ICognateIdentifier cognateIdentifier = _projectService.Project.CognateIdentifiers[ComponentIdentifiers.PrimaryCognateIdentifier];
            var threshold = cognateIdentifier as ThresholdCognateIdentifier;
            Set(() => Threshold, ref _threshold, threshold == null ? 0.75 : threshold.Threshold);
        }