[#37] Controls: Implement CheckComboBox and remove xctk
All checks were successful
Test / Run tests (push) Successful in 2m26s
All checks were successful
Test / Run tests (push) Successful in 2m26s
This commit is contained in:
@ -9,13 +9,9 @@ using Elwig.Controls;
|
||||
using Elwig.Helpers;
|
||||
using Elwig.Helpers.Billing;
|
||||
using Elwig.Models.Entities;
|
||||
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
||||
using ScottPlot.Plottables;
|
||||
using ScottPlot;
|
||||
using Xceed.Wpf.Toolkit.Primitives;
|
||||
using ScottPlot.Control;
|
||||
using System.Text.Json;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
public partial class ChartWindow : ContextWindow {
|
||||
@ -724,26 +720,31 @@ namespace Elwig.Windows {
|
||||
}
|
||||
}
|
||||
|
||||
private void VaributeInput_Changed(object sender, ItemSelectionChangedEventArgs e) {
|
||||
if (FillingInputs || e.Item is not Varibute v) return;
|
||||
private void VaributeInput_Changed(object sender, SelectionChangedEventArgs evt) {
|
||||
if (FillingInputs) return;
|
||||
var isOpen = VaributeInput.IsDropDownOpen;
|
||||
if (e.IsSelected) {
|
||||
if (RemoveVaributeFromOthers(e.Item.ToString())) {
|
||||
|
||||
foreach (var i in evt.AddedItems) {
|
||||
if (i is not Varibute v) continue;
|
||||
if (RemoveVaributeFromOthers(v.ToString())) {
|
||||
if (AbgewertetInput.IsChecked == true) {
|
||||
v.AssignedAbgewGraphId = SelectedGraphEntry?.Id;
|
||||
} else {
|
||||
v.AssignedGraphId = SelectedGraphEntry?.Id;
|
||||
}
|
||||
} else {
|
||||
VaributeInput.SelectedItems.Remove(e.Item);
|
||||
VaributeInput.SelectedItems.Remove(v);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
foreach (var i in evt.RemovedItems) {
|
||||
if (i is not Varibute v) continue;
|
||||
if (AbgewertetInput.IsChecked == true) {
|
||||
v.AssignedAbgewGraphId = null;
|
||||
} else {
|
||||
v.AssignedGraphId = null;
|
||||
}
|
||||
}
|
||||
|
||||
SelectedGraphEntry!.Vaributes = VaributeInput.SelectedItems.Cast<Varibute>().ToList();
|
||||
SetHasChanged();
|
||||
GraphList.Items.Refresh();
|
||||
|
Reference in New Issue
Block a user