2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-12-15 20:34:58 +01:00

Winforms overhal in progress

This commit is contained in:
Xjph
2023-05-05 09:37:08 -02:30
parent fa6966cff0
commit 7b6d345cbb
50 changed files with 5871 additions and 2680 deletions

View File

@@ -23,9 +23,10 @@ namespace Observatory.Framework
public object UI;
/// <summary>
/// <para>>Two-dimensional collection of items to display in UI grid for UIType.Basic</para>
/// <para>Collection bound to DataGrid used byu plugins with UIType.Basic.</para>
/// <para>Objects in collection should be of a class defined within the plugin consisting of string properties.<br/>Each object is a single row, and the property names are used as column headers.</para>
/// </summary>
public BasicGrid BasicGrid;
public ObservableCollection<object> DataGrid;
/// <summary>
/// Instantiate PluginUI of UIType.Basic.
@@ -34,10 +35,10 @@ namespace Observatory.Framework
/// <para>Collection bound to DataGrid used byu plugins with UIType.Basic.</para>
/// <para>Objects in collection should be of a class defined within the plugin consisting of string properties.<br/>Each object is a single row, and the property names are used as column headers.</para>
/// </param>
public PluginUI(BasicGrid basicGrid)
public PluginUI(ObservableCollection<object> DataGrid)
{
PluginUIType = UIType.Basic;
BasicGrid = basicGrid;
this.DataGrid = DataGrid;
}
/// <summary>
@@ -62,13 +63,13 @@ namespace Observatory.Framework
/// </summary>
None = 0,
/// <summary>
/// Simple DataGrid, to which items can be added or removed.
/// Simple listview, to which items can be added or removed.
/// </summary>
Basic = 1,
/// <summary>
/// AvaloniaUI control which is placed in plugin tab.
/// Panel control which is placed in plugin tab.
/// </summary>
Avalonia = 2,
Panel = 2,
/// <summary>
/// UI used by Observatory Core settings tab.<br/>
/// Not intended for use by plugins.