-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormSave.cs
30 lines (25 loc) · 892 Bytes
/
FormSave.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
using System;
using System.Drawing;
using System.Windows.Forms;
namespace KPFU_2_sem_programming_NotepadPlusPlus {
public partial class FormSave : Form {
public FormSave(string filename) {
InitializeComponent();
this.Icon = new Icon(FormMain.pathIconRed);
this.Text = FormMain.title;
saveLabel.Text += String.Format("\"{0}\"?", filename);
}
private void saveButtonSave_Click(object sender, EventArgs e) {
DialogResult = DialogResult.Yes;
this.Close();
}
private void saveButtonDontSave_Click(object sender, EventArgs e) {
DialogResult = DialogResult.No;
this.Close();
}
private void saveButtonCancel_Click(object sender, EventArgs e) {
DialogResult = DialogResult.Cancel;
this.Close();
}
}
}