Example #1
0
        private void btn_add_kitchen_printer_Click(object sender, EventArgs e)
        {
            FrmAddPrinter f = new FrmAddPrinter();

            if (f.ShowDialog() == DialogResult.OK)
            {
                kitchen_printers_dt.Rows.Add(f.txb_category.Text, f.cbx_printers.SelectedItem);
            }
        }
Example #2
0
        private void btn_add_pos_printer_Click(object sender, EventArgs e)
        {
            FrmAddPrinter f = new FrmAddPrinter();

            f.txb_category.ReadOnly = true;
            if (f.ShowDialog() == DialogResult.OK)
            {
                pos_printers_dt.Rows.Add(f.cbx_printers.SelectedItem);
            }
        }