// handle the click of this button private void _button_Click(object sender, EventArgs e) { if (ExpectSlotSave) { SaveCamera( ); SlotSaved?.Invoke(this, new EventArgs( )); } else { SwitchCamera( ); } }
// Handle slot is saved by one private void slot_SlotSaved(object sender, EventArgs e) { CancelSlotSave( ); SlotSaved?.Invoke(this, new EventArgs( )); // let the user know }