forked from e-mgam-e/Lab1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml.cs
More file actions
32 lines (28 loc) · 826 Bytes
/
MainWindow.axaml.cs
File metadata and controls
32 lines (28 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Controls;
using OxyPlot;
using System.Linq;
using Lab1.Tasks;
using System.Collections.ObjectModel;
using Lab1.Services;
namespace Lab1
{
public partial class MainWindow : Window
{
// Коллекция графиков, к которой будет привязан TabControl в XAML
public ObservableCollection<PlotModel> Plots { get; } = new();
public MainWindow()
{
InitializeComponent();
var plots = GraphService.GetSelectedPlots();
foreach (var plot in plots)
Plots.Add(plot);
DataContext = this;
Console.WriteLine($"Plots.Count = {Plots.Count}");
}
}
}