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.
51 lines
1.6 KiB
51 lines
1.6 KiB
3 months ago
|
using BiskLog_Point_Of_Sale.Multiple_Login;
|
||
|
using BiskLog_Point_Of_Sale.Properties;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel;
|
||
|
using System.Data;
|
||
|
using System.Drawing;
|
||
|
using System.Drawing.Printing;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using System.Windows.Forms;
|
||
|
|
||
|
namespace BiskLog_Point_Of_Sale
|
||
|
{
|
||
|
public partial class Barcode_LabelPrinterD : Form
|
||
|
{
|
||
|
public Barcode_LabelPrinterD()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
PopulateInstalledPrintersCombo();
|
||
|
}
|
||
|
private void PopulateInstalledPrintersCombo()
|
||
|
{
|
||
|
String pkInstalledPrinters;
|
||
|
for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++)
|
||
|
{
|
||
|
pkInstalledPrinters = PrinterSettings.InstalledPrinters[i];
|
||
|
printers.Items.Add(pkInstalledPrinters);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void Button3_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
string text = printers.GetItemText(printers.SelectedItem);
|
||
|
string title = "Setting Default printer";
|
||
|
string message = "Are you sure you would like to set " + text + " as your " +
|
||
|
"default product barcodes and product label printer ?";
|
||
|
Confirmation confirmation = new Confirmation(title, message);
|
||
|
confirmation.BringToFront();
|
||
|
confirmation.ShowDialog();
|
||
|
if (confirmation.DialogResult == DialogResult.Yes)
|
||
|
{
|
||
|
Settings.Default.Tag_BarcodePrinter = text;
|
||
|
Settings.Default.Save();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|