Exemple #1
0
 private void OpenLocation(LayoutLocation location)
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     if (location == null)
     {
         return;
     }
     EditorUtils.OpenFile(location.Filename, location.Line, location.Column);
 }
Exemple #2
0
        private LayoutLocation ReadLocation(BinaryReader reader, List <string> files)
        {
            int fileIndex = reader.ReadInt32();

            if (fileIndex < 0 || fileIndex >= files.Count)
            {
                return(null);
            }

            LayoutLocation ret = new LayoutLocation {
                Filename = files[fileIndex]
            };

            ret.Line   = reader.ReadUInt32();
            ret.Column = reader.ReadUInt32();

            return(ret);
        }