private void CboProfiles_PreviewMouseRightButtonUp(object sender, MouseButtonEventArgs e) { ProfileWindow profileWindow = new ProfileWindow { DataContext = ((ComboBox)sender).DataContext }; profileWindow.ShowDialog(); }
private void BtnAddProfiles_Click(object sender, RoutedEventArgs e) { ProfileWindow profileWindow = new ProfileWindow(); profileWindow.ShowDialog(); }