-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaymentform.cs
More file actions
59 lines (43 loc) · 1.48 KB
/
paymentform.cs
File metadata and controls
59 lines (43 loc) · 1.48 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
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Ap_Project_Clinic_
{
public partial class paymentform : Form
{
List<Ipay> pays;
public paymentform()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
pays = finantial.set();
txtallincome.Text = finantial.getallincome().ToString();
txtempsalary.Text = Convert.ToString(finantial.allsalary);
txtmedicalex.Text = Convert.ToString(finantial.allmedcalex);
if (pays == null)
{
MessageBox.Show("not enogh cash");
return;
}
dataGridView1.DataSource = pays;
string path1 = rateform.getpath() + "\\income.txt";
string path2 = rateform.getpath() + "medicalexpnses.txt";
System.IO.File.Delete(path1);
System.IO.File.Delete(path2);
}
private void button2_Click(object sender, EventArgs e)
{
DialogResult x = MessageBox.Show("do you want to clear checkoutemployee file too?","", MessageBoxButtons.YesNo);
if(x==DialogResult.Yes)
{
string pathckeck = rateform.getpath() + "\\checkoutemployee.txt";
System.IO.File.Delete(pathckeck);
}
}
private void label4_Click(object sender, EventArgs e)
{
}
}
}