aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Views/DBViews
ModeNameSize
-rw-r--r--AddressView.xaml2244logstatsplain
-rw-r--r--AddressView.xaml.cs668logstatsplain
-rw-r--r--AddressesView.xaml2209logstatsplain
-rw-r--r--AddressesView.xaml.cs773logstatsplain
-rw-r--r--ApplicationDisplayPanelVersionView.xaml1778logstatsplain
-rw-r--r--ApplicationDisplayPanelVersionView.xaml.cs714logstatsplain
-rw-r--r--ApplicationDisplayPanelVersionsView.xaml1778logstatsplain
-rw-r--r--ApplicationDisplayPanelVersionsView.xaml.cs856logstatsplain
-rw-r--r--ApplicationFirmwareVersionView.xaml1774logstatsplain
-rw-r--r--ApplicationFirmwareVersionView.xaml.cs706logstatsplain
-rw-r--r--ApplicationFirmwareVersionsView.xaml1766logstatsplain
-rw-r--r--ApplicationFirmwareVersionsView.xaml.cs848logstatsplain
-rw-r--r--ApplicationOsVersionView.xaml1768logstatsplain
-rw-r--r--ApplicationOsVersionView.xaml.cs694logstatsplain
-rw-r--r--ApplicationOsVersionsView.xaml1748logstatsplain
-rw-r--r--ApplicationOsVersionsView.xaml.cs836logstatsplain
-rw-r--r--CartridgeTypeView.xaml2103logstatsplain
-rw-r--r--CartridgeTypeView.xaml.cs680logstatsplain
-rw-r--r--CartridgeTypesView.xaml1817logstatsplain
-rw-r--r--CartridgeTypesView.xaml.cs822logstatsplain
-rw-r--r--CatView.xaml4314logstatsplain
-rw-r--r--CatView.xaml.cs660logstatsplain
-rw-r--r--CatsView.xaml3201logstatsplain
-rw-r--r--CatsView.xaml.cs802logstatsplain
-rw-r--r--CctView.xaml4174logstatsplain
-rw-r--r--CctView.xaml.cs660logstatsplain
-rw-r--r--CctsView.xaml2801logstatsplain
-rw-r--r--CctsView.xaml.cs802logstatsplain
-rw-r--r--ConfigurationView.xaml3963logstatsplain
-rw-r--r--ConfigurationView.xaml.cs680logstatsplain
-rw-r--r--ConfigurationsView.xaml2734logstatsplain
-rw-r--r--ProcessParametersTableView.xaml.cs698logstatsplain
-rw-r--r--ProcessParametersTablesGroupView.xaml2184logstatsplain
-rw-r--r--ProcessParametersTablesGroupView.xaml.cs707logstatsplain
-rw-r--r--ProcessParametersTablesGroupsView.xaml2338logstatsplain
-rw-r--r--ProcessParametersTablesGroupsView.xaml.cs770logstatsplain
-rw-r--r--ProcessParametersTablesView.xaml4050logstatsplain
-rw-r--r--ProcessParametersTablesView.xaml.cs840logstatsplain
-rw-r--r--RmlView.xaml7675logstatsplain
-rw-r--r--RmlView.xaml.cs660logstatsplain
-rw-r--r--RmlsView.xaml4792logstatsplain
-rw-r--r--RmlsView.xaml.cs763logstatsplain
-rw-r--r--RoleView.xaml3127logstatsplain
-rw-r--r--RoleView.xaml.cs869logstatsplain
-rw-r--r--RolesView.xaml2144logstatsplain
-rw-r--r--RolesView.xaml.cs765logstatsplain
-rw-r--r--SpoolTypeView.xaml5086logstatsplain
-rw-r--r--SpoolTypeView.xaml.cs672logstatsplain
-rw-r--r--SpoolTypesView.xaml2764logstatsplain
-rw-r--r--SpoolTypesView.xaml.cs814logstatsplain
-rw-r--r--UserView.xaml3386logstatsplain
-rw-r--r--UserView.xaml.cs866logstatsplain
-rw-r--r--UsersView.xaml2423logstatsplain
-rw-r--r--UsersView.xaml.cs722logstatsplain
class="c1">// now update the textBuffer and lineTree if (offset == 0 && length == rope.Length) { // optimize replacing the whole document rope.Clear(); rope.InsertText(0, newText); lineManager.Rebuild(); } else { rope.RemoveRange(offset, length); lineManager.Remove(offset, length); #if DEBUG lineTree.CheckProperties(); #endif rope.InsertText(offset, newText); lineManager.Insert(offset, newText); #if DEBUG lineTree.CheckProperties(); #endif } } // update text anchors if (offsetChangeMap == null) { anchorTree.HandleTextChange(args.CreateSingleChangeMapEntry(), delayedEvents); } else { foreach (OffsetChangeMapEntry entry in offsetChangeMap) { anchorTree.HandleTextChange(entry, delayedEvents); } } // raise delayed events after our data structures are consistent again delayedEvents.RaiseEvents(); // fire DocumentChanged event if (Changed != null) Changed(this, args); } #endregion #region GetLineBy... /// <summary> /// Gets a read-only list of lines. /// </summary> /// <remarks><inheritdoc cref="DocumentLine"/></remarks> public IList<DocumentLine> Lines { get { return lineTree; } } /// <summary> /// Gets a line by the line number: O(log n) /// </summary> public DocumentLine GetLineByNumber(int number) { VerifyAccess(); if (number < 1 || number > lineTree.LineCount) throw new ArgumentOutOfRangeException("number", number, "Value must be between 1 and " + lineTree.LineCount); return lineTree.GetByNumber(number); } /// <summary> /// Gets a document lines by offset. /// Runtime: O(log n) /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.Int32.ToString")] public DocumentLine GetLineByOffset(int offset) { VerifyAccess(); if (offset < 0 || offset > rope.Length) { throw new ArgumentOutOfRangeException("offset", offset, "0 <= offset <= " + rope.Length.ToString()); } return lineTree.GetByOffset(offset); } #endregion /// <summary> /// Gets the offset from a text location. /// </summary> /// <seealso cref="GetLocation"/> public int GetOffset(TextLocation location) { return GetOffset(location.Line, location.Column); } /// <summary> /// Gets the offset from a text location. /// </summary> /// <seealso cref="GetLocation"/> public int GetOffset(int line, int column) { DocumentLine docLine = GetLineByNumber(line); if (column <= 0) return docLine.Offset; if (column > docLine.Length) return docLine.EndOffset; return docLine.Offset + column - 1; } /// <summary> /// Gets the location from an offset. /// </summary> /// <seealso cref="GetOffset(TextLocation)"/> public TextLocation GetLocation(int offset) { DocumentLine line = GetLineByOffset(offset); return new TextLocation(line.LineNumber, offset - line.Offset + 1); } readonly ObservableCollection<ILineTracker> lineTrackers = new ObservableCollection<ILineTracker>(); /// <summary> /// Gets the list of <see cref="ILineTracker"/>s attached to this document. /// You can add custom line trackers to this list. /// </summary> public IList<ILineTracker> LineTrackers { get { VerifyAccess(); return lineTrackers; } } UndoStack undoStack; /// <summary> /// Gets the <see cref="UndoStack"/> of the document. /// </summary> /// <remarks>This property can also be used to set the undo stack, e.g. for sharing a common undo stack between multiple documents.</remarks> public UndoStack UndoStack { get { return undoStack; } set { if (value == null) throw new ArgumentNullException(); if (value != undoStack) { undoStack.ClearAll(); // first clear old undo stack, so that it can't be used to perform unexpected changes on this document // ClearAll() will also throw an exception when it's not safe to replace the undo stack (e.g. update is currently in progress) undoStack = value; OnPropertyChanged("UndoStack"); } } } /// <summary> /// Creates a new <see cref="TextAnchor"/> at the specified offset. /// </summary> /// <inheritdoc cref="TextAnchor" select="remarks|example"/> public TextAnchor CreateAnchor(int offset) { VerifyAccess(); if (offset < 0 || offset > rope.Length) { throw new ArgumentOutOfRangeException("offset", offset, "0 <= offset <= " + rope.Length.ToString(CultureInfo.InvariantCulture)); } return anchorTree.CreateAnchor(offset); } #region LineCount /// <summary> /// Gets the total number of lines in the document. /// Runtime: O(1). /// </summary> public int LineCount { get { VerifyAccess(); return lineTree.LineCount; } } /// <summary> /// Is raised when the LineCount property changes. /// </summary> [Obsolete("This event will be removed in a future version; use the PropertyChanged event instead")] public event EventHandler LineCountChanged; #endregion #region Debugging [Conditional("DEBUG")] internal void DebugVerifyAccess() { VerifyAccess(); } /// <summary> /// Gets the document lines tree in string form. /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] internal string GetLineTreeAsString() { #if DEBUG return lineTree.GetTreeAsString(); #else return "Not available in release build."; #endif } /// <summary> /// Gets the text anchor tree in string form. /// </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] internal string GetTextAnchorTreeAsString() { #if DEBUG return anchorTree.GetTreeAsString(); #else return "Not available in release build."; #endif } #endregion } }