Exemple #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmAddPrinter frm = new frmAddPrinter(PrinterMain);

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadDataOfPrinter();
            }
        }
Exemple #2
0
 private void btnAddPrinter_Click(object sender, EventArgs e)
 {
     PrinterMain = new PrinterModel();
     frmAddPrinter frm = new frmAddPrinter(PrinterMain);
     if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         LoadDataOfPrinter();
     }
 }