From bd72c7efe687dfaca6d4fd3c0fc2b5a39d57df55 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 12 Aug 2020 02:12:46 +0300 Subject: More work on proc_doc. Fixed app crash on code editor selection. --- .../SQL/RemoteSqlColumnCollection.cs | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Shared/SQL/RemoteSqlColumnCollection.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Shared/SQL/RemoteSqlColumnCollection.cs b/Software/Visual_Studio/PPC/Tango.PPC.Shared/SQL/RemoteSqlColumnCollection.cs index 5358e047b..dfda6c3b7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Shared/SQL/RemoteSqlColumnCollection.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Shared/SQL/RemoteSqlColumnCollection.cs @@ -7,15 +7,27 @@ using System.Threading.Tasks; namespace Tango.PPC.Shared.SQL { + /// + /// Represents a columns collection. + /// + /// public class RemoteSqlColumnCollection : Collection { private Dictionary _dictionary; + /// + /// Initializes a new instance of the class. + /// public RemoteSqlColumnCollection() { _dictionary = new Dictionary(); } + /// + /// Inserts an element into the at the specified index. + /// + /// The zero-based index at which should be inserted. + /// The object to insert. The value can be null for reference types. protected override void InsertItem(int index, RemoteSqlColumn item) { item.Index = Count; @@ -23,22 +35,41 @@ namespace Tango.PPC.Shared.SQL base.InsertItem(index, item); } + /// + /// Removes the element at the specified index of the . + /// + /// The zero-based index of the element to remove. + /// protected override void RemoveItem(int index) { throw new NotSupportedException(); } + /// + /// Removes all elements from the . + /// protected override void ClearItems() { _dictionary.Clear(); base.ClearItems(); } + /// + /// Replaces the element at the specified index. + /// + /// The zero-based index of the element to replace. + /// The new value for the element at the specified index. The value can be null for reference types. + /// protected override void SetItem(int index, RemoteSqlColumn item) { throw new NotSupportedException(); } + /// + /// Gets the column index by column name. + /// + /// Column name. + /// public int GetIndexOf(String columnName) { return _dictionary[columnName].Index; -- cgit v1.3.1