2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-06-30 16:23:41 -04:00

Add project files.

This commit is contained in:
Xjph
2021-06-03 22:25:32 -02:30
parent 7099cf23c6
commit a5154996ee
32 changed files with 2287 additions and 0 deletions

View File

@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using Observatory.UI.Models;
using ReactiveUI;
using System.Reactive.Linq;
using Observatory.Framework;
namespace Observatory.UI.ViewModels
{
public class BasicUIViewModel : ViewModelBase
{
private ObservableCollection<object> basicUIGrid;
public ObservableCollection<object> BasicUIGrid
{
get => basicUIGrid;
set
{
basicUIGrid = value;
this.RaisePropertyChanged(nameof(BasicUIGrid));
}
}
public BasicUIViewModel(ObservableCollection<object> BasicUIGrid)
{
this.BasicUIGrid = new();
this.BasicUIGrid = BasicUIGrid;
//// Create a timer and set a two second interval.
//var aTimer = new System.Timers.Timer();
//aTimer.Interval = 2000;
//// Hook up the Elapsed event for the timer.
//aTimer.Elapsed += OnTimedEvent;
//// Have the timer fire repeated events (true is the default)
//aTimer.AutoReset = true;
//// Start the timer
//aTimer.Enabled = true;
}
private PluginUI.UIType uiType;
public PluginUI.UIType UIType
{
get => uiType;
set
{
uiType = value;
this.RaisePropertyChanged(nameof(UIType));
}
}
private void OnTimedEvent(object sender, System.Timers.ElapsedEventArgs e)
{
basicUIGrid.Count();
}
}
}