General c# question

Discussion in 'Software' started by Adrynalyne, Jul 21, 2013.

  1. Adrynalyne

    Adrynalyne Guest

    I am building a WPF application for a martial arts school.

    Without going into great detail on what it does, I am trying to simplify and remove redundancies from code.

    I have a particular xaml window that I want to reuse up to 9-10 times. However, it has a save button and I want that button to save the data for the particular button/function that called it.


    I thought about using conditionals and bools set when a particular function calls the window, and then use a conditional in the code-behind to accomplish what I want. While I am certain that will work, that seems like a pretty crappy way to handle it.

    Is there a specific c# feature I can use for this? Would delegates work?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds