-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphWindow.xaml.cs
More file actions
38 lines (32 loc) · 1.04 KB
/
Copy pathGraphWindow.xaml.cs
File metadata and controls
38 lines (32 loc) · 1.04 KB
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
33
34
35
36
37
38
using System.Windows;
using AsusFanControl.ViewModels;
using LiveChartsCore.SkiaSharpView.WPF;
namespace AsusFanControl
{
public partial class GraphWindow : Window
{
private readonly GraphViewModel dataContext;
public GraphWindow()
{
dataContext = new GraphViewModel();
DataContext = dataContext;
InitializeComponent();
}
private void CartesianChart_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
{
var chart = sender as CartesianChart;
if (chart is not null)
dataContext.CartesianChart_MouseMove(chart, e);
}
private void CartesianChart_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
var chart = sender as CartesianChart;
if (chart is not null)
dataContext.CartesianChart_MouseUp(chart, e);
}
private void Close_Click(object sender, RoutedEventArgs e)
{
Close();
}
}
}