-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.cs
50 lines (46 loc) · 1.83 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
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Employeee_Details
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
string first = "";
string address = txtbox_address.Text;
string second = $"With great pleasure, I would like extend the following employment offer.\r\n \r\nPosition: {txtbox_jobtitle.Text}\r\nStart date: 10/12/2022\r\nSalary: 50,000 per month\r\n \r\nThis employment offer is contingent upon the successful \rcompletion of background check, drug screening, reference check. \rThis offer is not a contract of employment, and either party \rmay terminate employment at any time, with or without cause. \r\n \r\nSincerely, \r\n HR Manager.";
first = $"Dear { txtbox_name.Text },";
if (txtbox_name.Text != "" && txtbox_qualification.Text != "" && txtbox_address.Text != "" && txtbox_jobtitle.Text != "")
{
offer ooffer = new offer();
ooffer.lbl_address.Content = address;
ooffer.lbl_one.Content= first ;
ooffer.lbl_two.Content= second ;
ooffer.Show();
}
else
{
MessageBox.Show("Fill all the details Correctly");
}
}
}
}