Страница 1 из 1

Графические контролы ДотНЕТ

СообщениеДобавлено: Пн окт 19, 2009 8:55 am
Little_Cat
Доброга дня. Собственно вопрос - как использовать в Архестра ИДЕ эти контролы. Если мне нужен Грид, например, в символе.
Спасибо.

СообщениеДобавлено: Вт окт 20, 2009 6:00 am
Little_Cat
Сам и отвечу для "потомков" :)
Из оф. форума цитата:
"
There is always the possibility to use a standard .NET DataGridView which can be embedded in an ArchestrA symbol for use in InTouch. The grid can be populated using standard .NET tools for Oracle, OleDb or Odbc in the symbol scripts.

See here for documentation on the DataGridView and examples of how to populate it.

To use .NET Forms controls in ArchestrA Symbols, you have to import %WinDir%\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll into the Galaxy as a client control import.
"

СообщениеДобавлено: Чт окт 22, 2009 10:43 am
pss
Не лучший вариант импортировать все контролы... лучше уж взять и написать потомка от нужного заодно дописав немного функционала :) например нужные вещи вывести в свойства ... события например данные не все возвращают нормально ...
опять же цитата с оф. форума
These impose a few limitations. The most obvious that come to mind are:

Scripting is not capable of catching exceptions. Catch exceptions internally and expose possible exception messages as a string property of the class.
Scripting does not fare well with some data relationships. For instance, it is not possible to do recusive script calls to traverse a hiearchical structure as the nodes collection of a TreeView. The parsing of such data has to be built into the control.
Scripting is, as far as I know, incapable of generics. This means that you have to use explicit datatypes as avoid properties of types like ObservableCollection<T> or List<T>.
As far as I know, only controls inheriting from System.Windows.Forms.Control namespace are valid. Using Windows Presentation Foundation (System.Windows.Controls namespace) is probably out of the picture.