ChartWindow: Rename graph to curve for UI
This commit is contained in:
@ -39,8 +39,8 @@ namespace Elwig.Windows {
|
||||
private LegendItem QUWLegend;
|
||||
private LegendItem KABLegend;
|
||||
|
||||
private (Graph? graph, int index) LastHighlighted = (null, -1);
|
||||
private (Graph? graph, int index) Highlighted = (null, -1);
|
||||
private (Graph? Graph, int Index) LastHighlighted = (null, -1);
|
||||
private (Graph? Graph, int Index) Highlighted = (null, -1);
|
||||
private Graph? ActiveGraph = null;
|
||||
private int PrimaryMarkedPoint = -1;
|
||||
private int SecondaryMarkedPoint = -1;
|
||||
@ -481,10 +481,10 @@ namespace Elwig.Windows {
|
||||
|
||||
if (HoverActive) {
|
||||
if (PaymentVar.TestVariant && Keyboard.IsKeyDown(System.Windows.Input.Key.LeftCtrl)) {
|
||||
if (PrimaryMarkedPoint == -1 || ActiveGraph == null || ActiveGraph != Highlighted.graph) {
|
||||
if (PrimaryMarkedPoint == -1 || ActiveGraph == null || ActiveGraph != Highlighted.Graph) {
|
||||
return;
|
||||
}
|
||||
SecondaryMarkedPoint = Highlighted.index;
|
||||
SecondaryMarkedPoint = Highlighted.Index;
|
||||
|
||||
ChangeMarker(SecondaryMarkedPointPlot, true, ActiveGraph.GetOechsleAt(SecondaryMarkedPoint), ActiveGraph.GetPriceAt(SecondaryMarkedPoint));
|
||||
|
||||
@ -493,13 +493,13 @@ namespace Elwig.Windows {
|
||||
return;
|
||||
}
|
||||
|
||||
PrimaryMarkedPoint = Highlighted.index;
|
||||
if (ActiveGraph != Highlighted.graph) ChangeActiveGraph(Highlighted.graph);
|
||||
PrimaryMarkedPoint = Highlighted.Index;
|
||||
if (ActiveGraph != Highlighted.Graph) ChangeActiveGraph(Highlighted.Graph);
|
||||
|
||||
ChangeMarker(PrimaryMarkedPointPlot, true, ActiveGraph.GetOechsleAt(PrimaryMarkedPoint), ActiveGraph.GetPriceAt(PrimaryMarkedPoint));
|
||||
|
||||
OechsleInput.Text = Highlighted.graph.GetOechsleAt(Highlighted.index).ToString();
|
||||
PriceInput.Text = Highlighted.graph.GetPriceAt(Highlighted.index).ToString();
|
||||
OechsleInput.Text = Highlighted.Graph.GetOechsleAt(Highlighted.Index).ToString();
|
||||
PriceInput.Text = Highlighted.Graph.GetPriceAt(Highlighted.Index).ToString();
|
||||
|
||||
EnableActionButtons();
|
||||
} else {
|
||||
@ -622,8 +622,8 @@ namespace Elwig.Windows {
|
||||
if (SelectedGraphEntry == null) return;
|
||||
|
||||
var r = MessageBox.Show(
|
||||
$"Soll der Graph {SelectedGraphEntry.Id} (verwendet in folgenden Verträgen: {SelectedGraphEntry.VaributeStringSimple}) wirklich gelöscht werden?",
|
||||
"Graph löschen", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);
|
||||
$"Soll die Kurve {SelectedGraphEntry.Id} (verwendet in folgenden Verträgen: {SelectedGraphEntry.VaributeStringSimple}) wirklich gelöscht werden?",
|
||||
"Kurve löschen", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);
|
||||
|
||||
if (r == MessageBoxResult.Yes) {
|
||||
GraphEntries.Remove(SelectedGraphEntry);
|
||||
@ -735,7 +735,7 @@ namespace Elwig.Windows {
|
||||
if (ge != SelectedGraphEntry && ge.Abgewertet == SelectedGraphEntry?.Abgewertet) {
|
||||
var toRemove = ge.Vaributes.Where(c => c.Listing.Equals(varibute)).ToList();
|
||||
if (toRemove.Count == 0) continue;
|
||||
var r = MessageBox.Show($"Achtung: {string.Join(", ", toRemove)} ist bereits in Graph {ge.Id} in Verwendung!\nSoll die Zuweisung dort entfernt werden?", "Entfernen bestätigen",
|
||||
var r = MessageBox.Show($"Achtung: {string.Join(", ", toRemove)} ist bereits in Kurve {ge.Id} in Verwendung!\nSoll die Zuweisung dort entfernt werden?", "Entfernen bestätigen",
|
||||
MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);
|
||||
if (r != MessageBoxResult.Yes) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user