Ejemplo n.º 1
0
        public void AddLeak()
        {
            var tempLeak = new Leak()
            {
                CreateDate = LeakInfo.CreateDate,
                Title      = LeakInfo.Title,
                Comments   = new ObservableCollection <Comment>()
            };
            var tempComment = new Comment()
            {
                CreateDate = LeakInfo.CreateDate,
                Text       = CommentInfo.Text
            };

            tempLeak.Comments.Add(tempComment);
            Leaks.Add(tempLeak);
            _dataService.SaveLeaks(Leaks);
            RaisePropertyChanged("Leaks");
            LeakInfo    = new Leak();
            CommentInfo = new Comment();
        }
Ejemplo n.º 2
0
        // Add new backtrace
        public void AddBacktrace(List <string> lines, int startLine, int endLine)
        {
            var newTrace = Backtrace.FromLines(this, lines, startLine, endLine);

            Leaks.Add(newTrace);
        }