/// <summary> /// calls a child window to create a new Customer /// </summary> private void AddCommand() { _addmod = new AddModWIndow(); registerCloseWindow(); Messenger.Default.Send <AddMod>(new AddMod(false, null)); _addmod.Show(); }
/// <summary> /// Calls a Child WIndow in order to modify the currently selected Customer /// </summary> private void ModCommand() { if (selected) { _addmod = new AddModWIndow(); registerCloseWindow(); _addmod.Show(); Messenger.Default.Send <AddMod>(new AddMod(true, selectedCustomer)); } else { MessageBox.Show("Select a customer first"); } }