You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.9 KiB
73 lines
1.9 KiB
using BiskLog_Point_Of_Sale.Company_Setup;
|
|
using Point_Of_Sale_Managment;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace BiskLog_Point_Of_Sale.Multiple_Login
|
|
{
|
|
public partial class Confirmation : Form
|
|
{
|
|
string mainTitle;
|
|
string mainMessage;
|
|
public Confirmation(string title = null,string message = null)
|
|
{
|
|
InitializeComponent();
|
|
mainTitle = title;
|
|
mainMessage = message;
|
|
}
|
|
|
|
private void Cllose_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void Cllose_MouseEnter(object sender, EventArgs e)
|
|
{
|
|
cllose.BackColor = Color.Crimson;
|
|
}
|
|
|
|
private void Cllose_MouseLeave(object sender, EventArgs e)
|
|
{
|
|
cllose.BackColor = Color.FromArgb(20, 158, 132);
|
|
}
|
|
|
|
private void IdleLogout_Load(object sender, EventArgs e)
|
|
{
|
|
if (!txtMessage.Enabled)
|
|
{
|
|
txtMessage.ForeColor = Color.FromArgb(0, 52, 69);
|
|
}
|
|
Form1.printerDialog = this;
|
|
txtMessage.Text = mainMessage;
|
|
txtTitle.Text = mainTitle;
|
|
}
|
|
|
|
private void Button1_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Yes;
|
|
this.Close();
|
|
}
|
|
|
|
private void Button2_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.No;
|
|
this.Close();
|
|
}
|
|
|
|
private void TxtMessage_EnabledChanged(object sender, EventArgs e)
|
|
{
|
|
if (!txtMessage.Enabled)
|
|
{
|
|
txtMessage.ForeColor = Color.FromArgb(0, 52, 69);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|