Esempio n. 1
0
        public int CompareTo(object obj)
        {
            BreakPoint other = obj as BreakPoint;

            //same file?
            int result = File.CompareTo(other.File);

            if (result != 0)
            {
                return(result);
            }

            //same column?
            result = FileColumn.CompareTo(other.FileColumn);
            if (result != 0)
            {
                return(result);
            }

            //same line?
            result = FileLine.CompareTo(other.FileLine);
            if (result != 0)
            {
                return(result);
            }

            //same file, same column, same line: must be same breakpoint
            return(0);
        }
Esempio n. 2
0
        public int CompareTo(object obj)
        {
            var other = obj as BreakPoint;

            if (File == null && other == null)
            {
                return(1);
            }

            //same file?
            var result = string.Compare(File, other.File, StringComparison.OrdinalIgnoreCase);

            if (result != 0)
            {
                return(result);
            }

            //same column?
            result = FileColumn.CompareTo(other.FileColumn);
            if (result != 0)
            {
                return(result);
            }

            //same line?
            result = FileLine.CompareTo(other.FileLine);
            if (result != 0)
            {
                return(result);
            }

            //same file, same column, same line: must be same breakpoint
            return(0);
        }
Esempio n. 3
0
        public FileColumn AddFileColumn(string MemberName, string ImageLocation, string StyleClass = "")
        {
            FileColumn Column = new FileColumn(this, MemberName, ImageLocation);

            Column.ID         = MemberName;
            Column.StyleClass = StyleClass;
            return((FileColumn)this.Add(Column));
        }
Esempio n. 4
0
        private ResourceItem CreateResourceItem(IXLRow row)
        {
            var project = row.Cell(ProjectColumn.ColumnNumber()).GetString();
            var file    = row.Cell(FileColumn.ColumnNumber()).GetString();
            var name    = row.Cell(NameColumn.ColumnNumber()).GetString();

            var resource = new ResourceItem
            {
                Key = new ResourceKey {
                    Project = project, File = file, Name = name
                },
                Values = new Dictionary <string, string>(StringComparer.InvariantCultureIgnoreCase)
            };

            return(resource);
        }