home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
General Plug-In Framework?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="chefkoch" data-source="post: 309058" data-attributes="member: 10438"><p>I had a closer look at the VisualStudio crashes, when you try to set a dbfield for a dbtextbox in property editor, but did not set dbtable before.</p><p></p><p>to fix it, DBField.GetFieldList(control.Table) could return 'new ReadOnlyCollection<DBField>();' instead of null or </p><p>in DBFieldTypeConverter.cs the following method needs to be changed</p><p>[CODE] private List<string> getTypeList(IDBBackedControl control)</p><p> {</p><p> List<string> fieldNameList = new List<string>();</p><p> System.Collections.ObjectModel.ReadOnlyCollection<DBField> dbList = DBField.GetFieldList(control.Table);</p><p> if (dbList != null)</p><p> foreach (DBField currField in dbList)</p><p> {</p><p> fieldNameList.Add(currField.Name);</p><p> }</p><p></p><p> return fieldNameList;</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="chefkoch, post: 309058, member: 10438"] I had a closer look at the VisualStudio crashes, when you try to set a dbfield for a dbtextbox in property editor, but did not set dbtable before. to fix it, DBField.GetFieldList(control.Table) could return 'new ReadOnlyCollection<DBField>();' instead of null or in DBFieldTypeConverter.cs the following method needs to be changed [CODE] private List<string> getTypeList(IDBBackedControl control) { List<string> fieldNameList = new List<string>(); System.Collections.ObjectModel.ReadOnlyCollection<DBField> dbList = DBField.GetFieldList(control.Table); if (dbList != null) foreach (DBField currField in dbList) { fieldNameList.Add(currField.Name); } return fieldNameList; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
General Plug-In Framework?
Contact us
RSS
Top
Bottom