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.
89 lines
2.5 KiB
89 lines
2.5 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 bool mainBool;
|
|
string mainBoolMessage;
|
|
public Confirmation(string title = null,string message = null,string a_mainBoolMessage = null)
|
|
{
|
|
InitializeComponent();
|
|
mainTitle = title;
|
|
mainMessage = message;
|
|
mainBoolMessage = a_mainBoolMessage;
|
|
if (!String.IsNullOrEmpty(a_mainBoolMessage))
|
|
{
|
|
confirmChecbox.Visible = true;
|
|
confirmChecbox.Text = a_mainBoolMessage;
|
|
}
|
|
}
|
|
|
|
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;
|
|
if (!String.IsNullOrEmpty(mainBoolMessage))
|
|
{
|
|
mainBool = confirmChecbox.Checked;
|
|
}
|
|
this.Close();
|
|
}
|
|
|
|
private void Button2_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.No;
|
|
if (!String.IsNullOrEmpty(mainBoolMessage))
|
|
{
|
|
mainBool = confirmChecbox.Checked;
|
|
}
|
|
this.Close();
|
|
}
|
|
|
|
private void TxtMessage_EnabledChanged(object sender, EventArgs e)
|
|
{
|
|
if (!txtMessage.Enabled)
|
|
{
|
|
txtMessage.ForeColor = Color.FromArgb(0, 52, 69);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|