CNCGUI.IntegerUnit.Set C# (CSharp) 메소드

Set() 개인적인 메소드

private Set ( ScanFormatted scanf ) : void
scanf ScanFormatted
리턴 void
        internal void Set(ScanFormatted scanf)
        {
            Default();
            if (scanf.Results.Count >= 1)
                Value = (int)scanf.Results[0];
            if (scanf.Results.Count >= 2)
            {
                string unit = (string)scanf.Results[1];
                if (!string.IsNullOrEmpty(unit) && unit.ToLower() == "in")
                    Unit = UNIT.inch;
            }
        }