private void cancelButton_Click(object sender, EventArgs e) { if (mCallback != null) { mCallback.OnCancelled(GetUnwantedItems()); mCallback = null; } }
private void InputDialog_FormClosed(object sender, FormClosedEventArgs e) { if (mCallback != null) { mCallback.OnCancelled(); mCallback = null; } }