How to return a Readonly BindingList -


I have an existing class that has a list and I need to change this list to a binding list, but class There is no property to return a redline compilation of this list. It is important that this list be modified only in this class. Now I have to change this list to a compulsory list so that if I change the list I can be notified in another category. To convert this list into another category, databasesource.com. The only way to set up datasource is to provide the property that gives this binding list, but it will highlight the list and raise the read only capability. Is there a way to set up DataBindingSource.DataSource in another category and prevents the list from exposing other classes. The sample code below is

  // Existing Code Public Class Message Manager {list & lt; Message & gt; MessageList = new list & lt; Message & gt; (); Public readline calling & lt; Message & gt; Readonly Message List {Received Message List.Seride Only (); }}} // wants to convert to the public class MessageManager {binding list  MessageList = new binding list & lt; Message & gt; (); Public binding list & lt; Message & gt; Receive message {return message list; }}} // new class public class browser {binding source source = new binding source}; Public Browser () {source.DataSource = Message; Source.ListChanged + = New System.CommentModel.ListChangedEventHandler (source_ListChanged); } Private int message count = 0; Zero Source_list Changed (Object Sender, System.ComponentModel.ListChangedEventArgs e) {messageCount ++; }}  

Message Manager is an existing class. Is there no way to list messages in the class of the browser, while highlighting messages without any message?

As I understand your question, you only need information when the list changes And not when the item varies through INOTifyPropertyChanged. Observe. Try only one.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -