-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewPostForm.cs
42 lines (40 loc) · 1.23 KB
/
NewPostForm.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PersonalRU
{
public partial class NewPostForm : Form
{
public bool isCreateVacancy = false;
public string JobTitle = "";
public string Department = "";
public bool isOKed = false;
public NewPostForm()
{
InitializeComponent();
}
private void OKbutt_Click(object sender, EventArgs e)
{
if ((JobTitle_textBox.Text.Length == 0) || (Department_textbox.Text.Length == 0))
{ MessageBox.Show("Заполните все поля!"); return; }
else
{
this.JobTitle = this.JobTitle_textBox.Text;
this.Department = this.Department_textbox.Text;
this.isCreateVacancy = isCreateVacancy_checkBox.Checked;
this.isOKed = true;
this.Close();
}
}
private void CancelButt_Click(object sender, EventArgs e)
{
this.isOKed = false;
this.Close();
}
}
}