Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

AndrewCherry

@AndrewCherry
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • XSLT of data extracted via XPath?
    A AndrewCherry

    I know this really shouldn't be defeating me, but... I have a page where i'm using XSLT to transform a simple XML document (forum postings). This works fine, but if I want to display just one topic, i'm finding myself stuck. Using c# I can create an XmlNodeList containing the XML that I want, by performing a SelectNodes on an XmlDocument. This gives me the right data back, my XPath expression is fine. But! How do I then apply an XSL transform to that resulting nodelist? XSLT on seems to like XMLDocs, etc. Can I convert a NodeList to a Doc? I'm really stuck! Am I going about this the wrong way? Any help, or hints, anything, would be very gratefully received!

    XML / XSL xml help question csharp

  • making the computer restart after a setup program is finished
    A AndrewCherry

    Just one comment not on the technical side. If you don't wish to royally piss off most of your users, don't force a reboot at all, unless it is extremely neccesary. Several programs i've used lately have popped up a box at the end simply saying "Click OK to reboot". This is rarely neccesary, and certainly wasn't in some instances. This is amazingly bad usability design, and is hugely presumptious. Try to avoid this! Just a comment :)

    C# question workspace

  • c# alarm class implementation?
    A AndrewCherry

    Many apologies for any annoyance caused by a double post - I couldn't decide whether this was more of a general framework question or not. I happen to implement in c#, so posted there first, but thought that then it might be more appropriate as a general question of technique. Again, apologies for offence caused!

    .NET (Core and Framework) csharp question

  • c# alarm class implementation?
    A AndrewCherry

    I'm writing a simple little c# class to simply function as an alarm - you pass it a System.DateTime with the constructor, and when that time is reached, it fires an "Alarm" event. Simple enough. However, what's the most efficient way of doing this? Currently, I have thought of two ways. The first has a timer within the class that raises it's event every second or so, and each time it checks to see whether the time now is the same as the target time (accurate to the minute essentially, which is all that's neccesary). The second is to work out how many milliseconds is between the time the control is enabled, and the target time, and set the interval to that. With repeat turned off, this means that in theory the timer will fire when the alarm is due, which is maybe more efficient than regular comparison checking? Are these both crazy? Which is more sensible? Is the System.Timers.Timer accurate enough to do the second option anyway? Am i missing a very easy way of doing this that is nothing like the above? Thank you very much in advance for any comments.

    .NET (Core and Framework) csharp question

  • c# alarm class - implementation?
    A AndrewCherry

    I'm writing a simple little c# class to simply function as an alarm - you pass it a System.DateTime with the constructor, and when that time is reached, it fires an "Alarm" event. Simple enough. However, what's the most efficient way of doing this? Currently, I have thought of two ways. The first has a timer within the class that raises it's event every second or so, and each time it checks to see whether the time now is the same as the target time (accurate to the minute essentially, which is all that's neccesary). The second is to work out how many milliseconds is between the time the control is enabled, and the target time, and set the interval to that. With repeat turned off, this means that in theory the timer will fire when the alarm is due, which is maybe more efficient than regular comparison checking? Are these both crazy? Which is more sensible? Is the System.Timers.Timer accurate enough to do the second option anyway? Am i missing a very easy way of doing this that is nothing like the above? Thank you very much in advance for any comments.

    C# csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups