void RejectButtonClick(object?sender, EventArgs e) { if (SelectedOrder is not Fix.Order order) { return; } _defaultsButton.PerformClick(); _messageDefaults.RejectOrder(order); }
void RejectButtonClick(object sender, EventArgs e) { Fix.Order order = SelectedOrder; if (order == null) { return; } _defaultsButton.PerformClick(); _messageDefaults.RejectOrder(order); }