-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml.cs
48 lines (42 loc) · 1.33 KB
/
MainWindow.xaml.cs
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
39
40
41
42
43
44
45
46
47
48
using System.Linq;
using System.Windows;
namespace TRPO_3
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
using var db = new AttorneyContext();
_ = db.Case.FirstOrDefault();
}
private void ToClientsButton_Click(object sender, RoutedEventArgs e)
{
TableView tableView = new TableView(TableType.Client);
tableView.Show();
}
private void ToAttorneysButton_Click(object sender, RoutedEventArgs e)
{
TableView tableView = new TableView(TableType.Attorney);
tableView.Show();
}
private void ToCasesButton_Click(object sender, RoutedEventArgs e)
{
TableView tableView = new TableView(TableType.Case);
tableView.Show();
}
private void ToArchiveButton_Click(object sender, RoutedEventArgs e)
{
TableView tableView = new TableView(TableType.Archive);
tableView.Show();
}
private void ToArticlesButton_Click(object sender, RoutedEventArgs e)
{
TableView tableView = new TableView(TableType.Article);
tableView.Show();
}
}
}