check if item or subitem changed when closing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pedro007
    New Member
    • Nov 2009
    • 19

    check if item or subitem changed when closing

    hey,

    I load my listview from a excel file and I want to check whether an item or subitem is edited or new added then the save file dialog muss be opened when i leave, otherwise no change without the dialog, quit the program.

    somebody a idee how can i make that or a technik in .Net to check that?!

    thanks
    pedro
  • Bassem
    Contributor
    • Dec 2008
    • 344

    #2
    Hi,

    Does the change occur by your program? I think so. So, you can declare a global flag (bool) set it when a user makes add, edit, .. .

    But if the change occurs out of your monitored area. I think you can declare a DateTime to the date modified the file, at the end you can check it again to see if it changed.

    That's according to what I understood from your post.

    Thanks,
    Bassem

    Comment

    • pedro007
      New Member
      • Nov 2009
      • 19

      #3
      thanks bassem,

      its a good idee with the global flag bool.
      it works thank you

      Comment

      Working...