johndoe
johndoe
Explore posts from servers
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
I mean could I not just use the replace method to replace all dots with commas before it is being parsed
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
How could I also make dots work the same way?
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
Okay @Pobiega, you were right. With commas as TextBox input every calculation is correct.
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
I only used . So far. I will test , in a Bit
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
Ok I will check it. Because I know the formulas are correct (tested before with JavaScript)
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
Because it is so far off
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
But is there no obvious conversion error in my code which states directly that the result cannot be right
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Wrong calculation output
Yeah German. I want to make it English but our teachers force us to use German so they understand the variables etc better
27 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Simple project with C# windows forms app
Ah, the erros are from the columns which are not filled out by the form. They are initially empty and only calculated once the other cells are filled out
74 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Simple project with C# windows forms app
seems like having an anonymous object causes trouble
74 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Simple project with C# windows forms app
@Pobiega
Error 1 <>f__AnonymousType0`7 List anbieter TextBlock.Text String The property "Anbieter" was not found in the object of type "<>f__AnonymousType0`7".
Error 1 <>f__AnonymousType0`7 List anbieter TextBlock.Text String The property "Anbieter" was not found in the object of type "<>f__AnonymousType0`7".
xaml:
<Label Target="{Binding ElementName=angebotName}">Anbieter</Label>
<TextBox Name="anbieter" />

<DataGridTextColumn Header="Anbieter" Binding="{Binding Anbieter}" />
<Label Target="{Binding ElementName=angebotName}">Anbieter</Label>
<TextBox Name="anbieter" />

<DataGridTextColumn Header="Anbieter" Binding="{Binding Anbieter}" />
74 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Simple project with C# windows forms app
What I currently do to insert data also returns a bunch of errors
VergleichDataGrid.Items.Add(new {
Anbieter = anbieter.Text,
Menge = menge.Text,
Listenpreis = listenpreis.Text,
Mindermengenzuschlag = mindermengenzuschlag.Text,
Rabatt = rabatt.Text,
Skonto = skonto.Text,
Transportkosten = transportkosten.Text
});
VergleichDataGrid.Items.Add(new {
Anbieter = anbieter.Text,
Menge = menge.Text,
Listenpreis = listenpreis.Text,
Mindermengenzuschlag = mindermengenzuschlag.Text,
Rabatt = rabatt.Text,
Skonto = skonto.Text,
Transportkosten = transportkosten.Text
});
74 replies
CC#
Created by johndoe on 3/13/2023 in #help
❔ Simple project with C# windows forms app
Why is it so much harder to work with columns
74 replies