public void Publish(EventArgs message) { switch (message) { case LayoutChangedEventArgs layoutChange: { LayoutChangeRequest?.Invoke(layoutChange.Sender, layoutChange); break; } case ProjectChangedEventArgs project: { SelectedProjectChanged?.Invoke(project.Sender, project); break; } default: break; } }
protected void OnSelectedProjectChanged(SelectedProjectChangedEventArgs e) { SelectedProjectChanged?.Invoke(this, e); }