-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml.cs
More file actions
78 lines (68 loc) · 2.47 KB
/
Copy pathMainWindow.xaml.cs
File metadata and controls
78 lines (68 loc) · 2.47 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System.Windows;
using System.Windows.Input;
namespace MyFriendChemistry
{
/// <summary>
/// MainWindow.xaml에 대한 상호 작용 논리
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void MainWindow_MouseDown(object sender, MouseButtonEventArgs e) //창을 클릭했을 때 드래그할 수 있게 해준다
{
this.DragMove();
}
private void ch_board1_Click(object sender, RoutedEventArgs e) //원소주기율표버튼 누름
{
AtomBoard atomboard = new AtomBoard();
atomboard.Show();
}
private void ch_board2_Click(object sender, RoutedEventArgs e) //기초화학지식평가버튼 누름
{
Test test = new Test();
test.Show();
}
private void ch_board3_Click(object sender, RoutedEventArgs e) //화학마당버튼 누름
{
School school = new School();
school.Show();
}
private void ch_board4_Click(object sender, RoutedEventArgs e) //오답노트버튼 누름
{
FailureNote failurenote = new FailureNote();
failurenote.Show();
}
private void ch_board5_Click(object sender, RoutedEventArgs e) //의사소통버튼 누름
{
Communication options = new Communication();
options.Show();
}
private void Inform_Click(object sender, RoutedEventArgs e) //도움말버튼 누름
{
Information inform = new Information();
inform.Show();
}
private void Close_button_Click(object sender, RoutedEventArgs e) //종료버튼 누름
{
//종료하시겠습니까 창을 보여준다
Close.Visibility = Visibility.Visible;
label.Visibility = Visibility.Visible;
yes.Visibility = Visibility.Visible;
no.Visibility = Visibility.Visible;
}
private void yes_Click(object sender, RoutedEventArgs e) //종료한다
{
Application.Current.Shutdown();
}
private void no_Click(object sender, RoutedEventArgs e) //종료하지 않는다
{
Close.Visibility = Visibility.Hidden;
label.Visibility = Visibility.Hidden;
yes.Visibility = Visibility.Hidden;
no.Visibility = Visibility.Hidden;
}
}
}