ChartWindow: Round PriceInput.Text
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Test / Run tests (push) Successful in 1m44s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Test / Run tests (push) Successful in 1m44s
				
			This commit is contained in:
		@@ -139,12 +139,12 @@
 | 
			
		||||
 | 
			
		||||
                    <Label Content="Oechsle:" Margin="10,10,0,0" Grid.Column="0"/>
 | 
			
		||||
                    <ctrl:UnitTextBox x:Name="OechsleInput" Unit="°Oe" TextChanged="OechsleInput_TextChanged" IsEnabled="False" LostFocus="OechsleInput_LostFocus"
 | 
			
		||||
                        Grid.Column="1" Width="90" Margin="0,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
 | 
			
		||||
                                      Grid.Column="1" Width="90" Margin="0,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    <Label Content="Preis:" Margin="10,40,0,0" Grid.Column="0"/>
 | 
			
		||||
                    <ctrl:UnitTextBox x:Name="PriceInput" Unit="€/kg" TextChanged="PriceInput_TextChanged" IsEnabled="False" LostFocus="PriceInput_LostFocus"
 | 
			
		||||
                        Grid.Column="1" Width="90" Margin="0,40,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
 | 
			
		||||
                                      Grid.Column="1" Width="90" Margin="0,40,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
 | 
			
		||||
                </Grid>
 | 
			
		||||
            </GroupBox>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -509,7 +509,7 @@ namespace Elwig.Windows {
 | 
			
		||||
                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();
 | 
			
		||||
                PriceInput.Text = Math.Round(Highlighted.Graph.GetPriceAt(Highlighted.Index), Season.Precision).ToString();
 | 
			
		||||
 | 
			
		||||
                EnableActionButtons();
 | 
			
		||||
            } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user