private void CashRegisterConfigSMI_Click(object sender, EventArgs e) { CashRegisters.CashRegisterData form = new CashRegisters.CashRegisterData(cashRegister); form.ShowDialog(); cashRegister = form.CashRegisterInfo; }