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