Ejemplo n.º 1
0
        private void GetCommonViewType()
        {
            PromptKeywordOptions options = new PromptKeywordOptions("\nSpecify kind of profile to be deconstructed.");

            options.AllowNone = false;
            options.AppendKeywordsToMessage = true;
            options.Keywords.Add("Profile");
            options.Keywords.Add("Section");
            PromptResult result = Active.Editor.GetKeywords(options);

            CheckForValidUserInput(result);
            if (result.StringResult == "Profile")
            {
                _type = SurfaceSampleType.Along;
            }
            else
            {
                _type = SurfaceSampleType.Across;
            }
        }
 internal SampleViewGetter(SurfaceSampleType type) => _sampleType = type;