示例#1
0
            private void splitLine()
            {
                if (!string.IsNullOrEmpty(LineNumber))
                {
                    var splitLineNumber = LineNumber.Split(".".ToCharArray()).Select(value => int.Parse(value)).ToArray();

                    if (splitLineNumber.Count() == 3)
                    {
                        _act   = splitLineNumber[0];
                        _scene = splitLineNumber[1];
                        _line  = splitLineNumber[2];
                    }
                    else
                    {
                        _act   = 0;
                        _scene = 0;
                        _line  = 0;
                    }
                }
            }