24 lines
700 B
C#
24 lines
700 B
C#
using System.Collections.ObjectModel;
|
|
using pgLabII.Model;
|
|
|
|
namespace pgLabII.ViewModels;
|
|
|
|
/// <summary>
|
|
/// ViewModel for maintaining a list of views displayed for instance in a TabControl
|
|
/// </summary>
|
|
public class ViewListViewModel : ViewModelBase
|
|
{
|
|
private readonly ServerConfigurationEntity serverConfig;
|
|
|
|
public ViewListViewModel(ServerConfigurationEntity serverConfig)
|
|
{
|
|
this.serverConfig = serverConfig;
|
|
|
|
Views = [
|
|
new QueryToolViewModel(serverConfig) { Caption = "Abc" },
|
|
new QueryToolViewModel(serverConfig) { Caption = "Test" },
|
|
];
|
|
}
|
|
public ObservableCollection<IViewItem> Views { get; private set; }
|
|
}
|
|
|