Search:

Type: Posts; User: MrNorth

Page 1 of 13 1 2 3 4

Search: Search took 1.06 seconds.

  1. Replies
    1
    Views
    1,955

    VS 2015 Create xml file from db entities?

    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...
  2. VS 2015 Need help with finding where curves intersect

    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...
  3. Replies
    1
    Views
    1,944

    VS 2015 Developing a component, some questions

    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)...
  4. Replies
    8
    Views
    1,044

    VS 2013 Re: [RESOLVED] Can this code be improved?

    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...
  5. Replies
    8
    Views
    1,044

    VS 2013 [RESOLVED] Can this code be improved?

    I was doing code reviews and stumbled upon this code



    Private Function GetServerNameFromOracleConnectionString(connStringKey As String) As String
    Dim connString =...
  6. VS 2013 Re: Need help with backgrund thread and UI blocking

    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...
  7. VS 2013 Need help with backgrund thread and UI blocking

    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...
  8. Replies
    3
    Views
    2,832

    VS 2015 raiseevent from async method?

    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...
  9. Replies
    13
    Views
    1,456

    VS 2013 Re: Some advice on regular expressions

    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...
  10. Replies
    13
    Views
    1,456

    VS 2013 Re: Some advice on regular expressions

    Hi!

    I have no luck, either in VB.NET nor on https://regex101.com/

    no characters are accepted by that reg exp...

    /H
  11. Replies
    13
    Views
    1,456

    VS 2013 Some advice on regular expressions

    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...
  12. Replies
    4
    Views
    810

    VS 2013 Re: Need help with generics and base classes

    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...
  13. Replies
    4
    Views
    810

    VS 2013 Re: Need help with generics and base classes

    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...
  14. Replies
    4
    Views
    810

    VS 2013 Need help with generics and base classes

    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...
  15. VS 2013 [RESOLVED] Help with Validation and CustomValidaor

    Hi!


    I have a very simple class

    Customer


    which has a property
  16. VS 2013 [RESOLVED] Need help with PredicateBuilder and LINQ

    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...
  17. Replies
    2
    Views
    600

    VS 2013 How is this possible?

    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...
  18. Replies
    12
    Views
    1,420

    VS 2013 Re: [RESOLVED] How to write this more compact?

    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,...
  19. Replies
    12
    Views
    1,420

    VS 2013 Re: How to write this more compact?

    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...
  20. Replies
    0
    Views
    384

    Help with entity framework 6

    Hello!

    I can't figure out how to properly map using fluent api the following one to one relationship:

    Database:

    Table1
    ---------------
    ID
    DESCRIPTION
  21. Replies
    12
    Views
    1,420

    VS 2013 [RESOLVED] How to write this more compact?

    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
    ...
  22. Need help understanding Resource strings and locales

    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...
  23. VS 2013 Re: Need some advice with refactoring

    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...
  24. VS 2013 [RESOLVED] Need some advice with refactoring

    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,...
  25. Replies
    0
    Views
    537

    Entity framework problem

    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)



    ...
  26. VS 2013 Re: Refactor select-if statement with lot of duplicate code

    Well it works, but code that works is not always good code...

    Like I stated



    Cheers
    /Henrik
  27. VS 2013 Refactor select-if statement with lot of duplicate code

    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
  28. VS 2013 Re: Method for conversion, can it be improved?

    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...
  29. VS 2013 [RESOLVED] Method for conversion, can it be improved?

    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...
  30. VS 2013 Re: Discussion on how to share data between private methods

    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.
    ...
  31. VS 2013 [RESOLVED] Discussion on how to share data between private methods

    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...
  32. Replies
    3
    Views
    1,109

    VS 2013 Re: How to unit test this method?

    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...
  33. Replies
    3
    Views
    1,109

    VS 2013 [RESOLVED] How to unit test this method?

    Public Async Function ShowYesNoAsync(message As String, title As String, icon As MessageBoxImage) As Task(Of Boolean) Implements IDialogService.ShowYesNoAsync
    Return Await...
  34. Replies
    0
    Views
    612

    VS 2013 Question about Prism and MVVM

    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...
  35. Replies
    2
    Views
    546

    VS 2013 Help to implement task based algorithm

    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...
  36. VS 2013 Re: How to wait for an await method to cancel?

    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...
  37. VS 2013 [RESOLVED] How to wait for an await method to cancel?

    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...
  38. Replies
    3
    Views
    882

    VS 2013 Re: How to improve this code?

    Thanks, I figured the code was overly complex!

    /H
  39. Replies
    3
    Views
    882

    VS 2013 [RESOLVED] How to improve this code?

    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...
  40. Replies
    1
    Views
    19,975

    Best way to generate table?

    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....
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width