-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfile.cs
54 lines (44 loc) · 1.36 KB
/
Profile.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
51
52
53
54
using Newtonsoft.Json.Linq;
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;
namespace WinFormsApp1
{
public partial class Profile : Form
{
JObject userData;
public Profile(JObject userData)
{
InitializeComponent();
this.userData = userData;
this.profileName.Text = userData.GetValue("name").ToString();
this.profileEmail.Text = userData.GetValue("email").ToString();
this.profilePassword.Text = userData.GetValue("password").ToString();
this.profilePhone.Text = userData.GetValue("mobile").ToString();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
//var dashboard = new User(userData);
//dashboard.Show();
this.Hide();
}
private void pictureBox2_Click(object sender, EventArgs e)
{
}
private void profileName_TextChanged(object sender, EventArgs e)
{
}
}
}