-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm3.cs
More file actions
78 lines (59 loc) · 2.24 KB
/
Form3.cs
File metadata and controls
78 lines (59 loc) · 2.24 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;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace DentistAppointmentApp
{
public partial class confirmationPanel : Form
{
public confirmationPanel(String username, String password)
{
InitializeComponent();
String accountfile = "C:\\Users\\Rawan\\OneDrive\\Desktop\\client.txt";
StreamReader streamReader = new StreamReader(accountfile);
string line;
while ((line = streamReader.ReadLine()) != null)
{
String[] value = line.Split(',');
String un = value[1];
String pw = value[2];
MessageBox.Show("login successful ");
if (username == un && password == pw)
{
fNameLabel.Text = value[0];
lNameLabel.Text = value[1];
cprLabel.Text = value[2];
mobilePhone_label.Text = value[3];
servicesLabel.Text = value[4];
doctorChosen.Text = value[5];
dateTimeLabel.Text = value[6] + ", " + value[5];
}
}
streamReader.Close();
}
private void label5_Click(object sender, EventArgs e)
{
}
private void bookedServicesLabel_Click(object sender, EventArgs e)
{
}
private void cancel2Button_Click(object sender, EventArgs e)
{
this.Close();
}
private void rescheduleButton_Click(object sender, EventArgs e)
{
String clientFile = "C:\\Users\\Rawan\\OneDrive\\Desktop\\client.txt";
StreamWriter streamwriter = new StreamWriter(clientFile);
streamwriter.WriteLine();
streamwriter.Close();
//tbi
}
}
}