-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOSMO_Dashboard.cs
45 lines (42 loc) · 1.28 KB
/
OSMO_Dashboard.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
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 Furniture_System
{
public partial class OSMO_Dashboard : MetroFramework.Forms.MetroForm
{
public OSMO_Dashboard(string sm,string nm)
{
InitializeComponent();
SM = sm;
NM = nm;
this.lbl_Welcome_Name.Text = NM;
}
string SM, NM;
private void btn_logout_Click(object sender, EventArgs e)
{
if (MetroFramework.MetroMessageBox.Show(this, "Do you want to Log Out?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
{
this.Hide();
Login_Sign_Up lg = new Login_Sign_Up();
lg.Show();
}
}
private void OSMO_Dashboard_FormClosed(object sender, FormClosedEventArgs e)
{
System.Windows.Forms.Application.ExitThread();
}
private void btn_Print_Bill_Click(object sender, EventArgs e)
{
this.Hide();
OSMO_Print_Bill pb = new OSMO_Print_Bill(SM,NM);
pb.Show();
}
}
}