Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Windows Simulator #2699
    Erno
    Participant

    Hi Boris,

    Yes, sorry about that. I have a working version. It still requires some cleaning up and then I will make it available.

    in reply to: Windows Simulator #2416
    Erno
    Participant

    Yes, prefixing with zeros might be a solution after determining the maximum length of the file names. However in C# it is trivial to sort based on the file names parsed to integers:

    var sortedByValue = fileNames.OrderedBy(fileName => int.Parse(fileName).Select(fileName => fileName);

    in reply to: Windows Simulator #2388
    Erno
    Participant

    Ah, that is very useful, thank you.

    (I already implemented the config file mechanism, that was fairly easy to do)

    in reply to: Windows Simulator #2382
    Erno
    Participant

    Standard sorting of the file names gives a new problem: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 sorts like: 0, 1, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9

    Should I assume that bmp files only have a numerical name (before the .bmp)?

    If so, I could parse the numbers and sort them by number.
    If not, if e.g., pac1.bmp, pac2.bmp, pac3.bmp etc. is also allowed, I might need to implement some magic sorting.

    in reply to: Windows Simulator #2381
    Erno
    Participant

    Thanks! As soon as I have a working app I will make it available.

Viewing 5 posts - 1 through 5 (of 5 total)