using BiskLog_Point_Of_Sale.Company_Setup; using BiskLog_Point_Of_Sale.Multiple_Login; using Point_Of_Sale_Managment; 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 BiskLog_Point_Of_Sale.Dialogs { public partial class Prompt : Form { public bool confirmed = false; public Prompt() { InitializeComponent(); label2.Text = MainLogin.login_user; } private void EXITBTN_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Abort; this.Close(); } private void EXITBTN_MouseEnter(object sender, EventArgs e) { EXITBTN.BackColor = Color.Crimson; } private void EXITBTN_MouseLeave(object sender, EventArgs e) { EXITBTN.BackColor = Color.Transparent; } private void Button1_Click(object sender, EventArgs e) { if (passwordEncryption.Decrypt(Splashscreen.ppd).Equals(textBox1.Text)) { confirmed = true; this.DialogResult = DialogResult.OK; this.Close(); } else { string title = "Password incorrect"; string message = "Sorry you have entered a wrong password"; NoAction noAction = new NoAction(title, message); noAction.BringToFront(); noAction.ShowDialog(); } } } }