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

New UI framework changes

This commit is contained in:
Xjph
2023-02-08 21:39:37 -03:30
parent 5c3474dc0e
commit fa6966cff0
7 changed files with 141 additions and 203 deletions

View File

@@ -23,25 +23,9 @@ namespace Observatory.Framework
public object UI;
/// <summary>
/// <para>Collection bound to DataGrid used by 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>
/// <para>>Two-dimensional collection of items to display in UI grid for UIType.Basic</para>
/// </summary>
public ObservableCollection<object> DataGrid;
/// <summary>
/// <para>Collection bound to DataGrid headers used by plugins with UIType.Basic.</para>
/// </summary>
public ObservableCollection<string> Headers;
/// <summary>
/// <para>Collection used to specify formatting of items in respective columns.</para>
/// </summary>
public ObservableCollection<string> Formats;
/// <summary>
/// <para>Two-dimensional collection of items to display in UI grid.</para>
/// </summary>
public ObservableCollection<ObservableCollection<object>> Items;
public BasicGrid BasicGrid;
/// <summary>
/// Instantiate PluginUI of UIType.Basic.
@@ -50,10 +34,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(ObservableCollection<object> DataGrid)
public PluginUI(BasicGrid basicGrid)
{
PluginUIType = UIType.Basic;
this.DataGrid = DataGrid;
BasicGrid = basicGrid;
}
/// <summary>