private void btnEdit_Click(object sender, EventArgs e) { frmAddPrinter frm = new frmAddPrinter(PrinterMain); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadDataOfPrinter(); } }
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(); } }