Search:
Type: Posts; User: MrNorth
Search:
Search took 1.06 seconds.
-
Hi!
I got an xsd file from another department and they need data from our database as an xml message, formatted as in their xsd file. We use Entity Framework 6 as our OR mapper. Which is the best...
-
Hi!
I have two lists with 20 2D-points each (X and Y).
From these, I need to extrapolate a third curve that points from curve 1 before the two curves intersect, and points from curve 2 after...
-
Hi!
We are currently developing a vb.net component (class library) that wraps a serialport that communicates to some hardware through modbus. The basic features of this api should be:
1)...
-
Thanks for the assistance. Actually, I didn't think much about the reg-exp but since it is used on some places in the app for validation, we could use it here as well. Good catch!
One small issue...
-
I was doing code reviews and stumbled upon this code
Private Function GetServerNameFromOracleConnectionString(connStringKey As String) As String
Dim connString =...
-
The component in question is called oxyplot and we use it to generate graphs. The call we use is actually an api call that can generate xaml from a PlotModel, and somewhere inside the api I get an...
-
Hi!
On our wpf vb.net application we have a button "generate report". The report will be opened as a pdf to the user when finished. These are the steps involved:
1) Show a panel to the user...
-
Hi!
I am working in some old code that we are moving into the world of async await. I have hit a problem with a class that notifies subscribers of status changes through RaiseEvent. The problem is...
-
I note that my question was not clear.
My delimiter I don't mean thousand delimiter, but rather a decimal delimiter when trying to input values to a double type.
I have tested the above reg...
-
Hi!
I have no luck, either in VB.NET nor on https://regex101.com/
no characters are accepted by that reg exp...
/H
-
Although not directly related to vb.net, I couldn't find a better home for this question.
I am doing on my form some input validation, and trying to come up with a regular expression that will...
-
Hi!
I am not sure I understand.
AbstractValidator(of T) is a class defined in the nuget package FluentValidation and is nothing I can change. The problem I am facing is that the Validate...
-
Hi again!
As I noted before, the compiler doesn't like the call to validate, which is an extension method definied in FluentValidation namespace.
As far as I can see, the real issue here is...
-
Hi!
I am trying to apply some refactoring to a viewmodel class, but I am fairly stuck. We had validation logic in every view model, and the code looked very repetitive, so I figured I should put...
-
Hi!
I have a very simple class
Customer
which has a property
-
Hi!
I wanted to construct dynamic Linq to Entities queries so I added the LinqToolKit which included this nifty library. The problem is that it doesn't seem to work for me. I have spent two days...
-
Hi!
Please check this screenshot:
http://forumbilder.se/ECGH0/wierd.png?width=150
For some reason the guarding if statement is ignored and I had to add a second if to check if curve was...
-
Thanks for all valuable comments, I have learned a lot more about VB.NET now and the with-operator which is very handy. I also had some ideas about keeping the code simple versus keeping it short,...
-
Hi!
Not feeling insulted at all ;) I inherited this code from another developer who quitted, and now I am starting to make changes. This thing with the ...Units variable is like this:
In the...
-
Hello!
I can't figure out how to properly map using fluent api the following one to one relationship:
Database:
Table1
---------------
ID
DESCRIPTION
-
Hi!
I have done mostly C# and now I am programming VB.NET and I have a few questions on how to optimize my code:
First
If performanceTest.TestResultUnits = 4 Then
...
-
Hi!
I am confused. We have written a vb.net wpf app where the user is supposed to change languages of the UI texts by selecting a dropdown list and tehn restarts the app, the selected locale is...
-
Yeha I guess you are right, the class is not big enough for an "extract class" refactoring here, even though the class does more than it should (why should it compose a message for example?) That...
-
Hi!
We are developing a desktop application that uses WCF services as a service layer. Service proxies are injected into the application viewmodels, making them pretty slim, mostly just commands,...
-
Hi!
I am having problems making entity framework save a detached entity that has child entities.
I have a simple One to One entity that has been mapped like this (the child)
...
-
Well it works, but code that works is not always good code...
Like I stated
Cheers
/Henrik
-
Hi!
I came across this piece of code today:
Public Class Form1
'Viewmodel stuff that binds to a UI
Private Property ShowA1 As Boolean
Private Property ShowA2 As Boolean
-
Thanks for your suggestions. Yes one idea is definetly to use binaries in the database, but it is a legacy db from the 80's that has been moved intoa sql server, and lots of other systems depend on...
-
Hey!
We have a situation where we are using data from a service that is from a non normalized database. In this particular case we are trying to create information to a graph component on what...
-
That sounds reasonable. We ended up with a mix. We put two business objects in the constructor, and then we assigned private member variables to whatever felt the best. Everyone is happy now.
...
-
Hi!
I had a discussion with colleagues today about a class we all are working on. It is a validator class that uses dependent on two business objects
The purpose of the class is to validate...
-
Thanks for the reply. I did manage to do something similar but with Microsoft Fakes, where I used a shim of the System.Windows.MessageBox and just made teh show method return whatever I...
-
Public Async Function ShowYesNoAsync(message As String, title As String, icon As MessageBoxImage) As Task(Of Boolean) Implements IDialogService.ShowYesNoAsync
Return Await...
-
Hi!
I am currently developing a WPF prims application, and there are some issues we haven't sorted out. Hopefully there is someone here that can give some tips.
1) We have a view composed like...
-
Hi!
I have really hit a wall. I need to figure out how to sync the execution and cancellation of tasks based on the following program flow:
CASE WHEN STARTING APP...
-
Thanks for the reply.
Yeah, I ended up doing something similar to your idea, but instead of queuing up all calls, in the carousel_changed event handler I check if work is in progress AND if there...
-
Hi!
I have an application where the user can scroll through different menu options (like a carousel). And for each of these menu options, different data is to be loaded in a content view.
If...
-
Thanks, I figured the code was overly complex!
/H
-
Hi!
I have written a small method that keeps track of a pivot control containing months from jan-dec. The pivot can scroll both ways and I have to keep track of which way the scrolling occurs, and...
-
Hi!
We are debating which is is the best way in XAML (for windows phone 8.1) to generate a simple grid with x times y cells, where each cell should be clickable and have it's own datatemplate....
|
Click Here to Expand Forum to Full Width
|