private void HandleXClick(object sender, RoutedEventArgs e) { XClick?.Invoke(this, null); }
private void button1_Click(object sender, EventArgs e) { XClick?.Invoke(this, e); }