Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to work with IRC in C# Pin
Dr.Walt Fair, PE10-May-10 16:10
professionalDr.Walt Fair, PE10-May-10 16:10 
AnswerRe: How to work with IRC in C# Pin
Peace ON10-May-10 20:31
Peace ON10-May-10 20:31 
QuestionAssemblyInfo Pin
Ryan Minor10-May-10 14:09
Ryan Minor10-May-10 14:09 
AnswerRe: AssemblyInfo Pin
Abhinav S10-May-10 17:08
Abhinav S10-May-10 17:08 
QuestionCombobox with datasource doesn't sort correctly after adding a record [modified] Pin
rpfEYNMAN10-May-10 7:52
rpfEYNMAN10-May-10 7:52 
AnswerRe: Combobox with datasource doesn't sort correctly after adding a record Pin
William Winner10-May-10 8:27
William Winner10-May-10 8:27 
GeneralRe: Combobox with datasource doesn't sort correctly after adding a record Pin
rpfEYNMAN10-May-10 10:00
rpfEYNMAN10-May-10 10:00 
QuestionDataGridView <-> PropertyGrid data binding Pin
rbuchana10-May-10 7:46
rbuchana10-May-10 7:46 
Any and all,

Try not to flame me, I'm a EE that writes C# sparingly, so go easy on me.

I have an application with a property grid and a data grid view. The data grid represents a register table of an ASIC. A register location inside the ASIC controls some portion of the ASIC. The property grid contains the same control as the register table, only in a more easy to use manner, as you can imagine.

The user can alter a property which in turn writes a register in the ASIC, this register change fires the data grid to update, via reading all the registers in the ASIC. The reverse is also possible: the user may manually change a register which updates the data grid and then the property grid is updated.

If I explained myself well enough, the data grid and property grids are tied together via control of the ASIC. Currently, if a property is changed I have a big case statement with the property name as the switch. Depending on which property is updated I then alter the specific register.

Currently, if a register is manually written (via the data grid) I have another big case statement with the register address as the switch. I then update the necessary property in the property grid.

My question is there must be a better way of doing this. As you can imagine every time I port my software to a new or different ASIC I have to re-write ~1000 lines of code. Also a property can affect multiple registers, which in turn can affect other properties, i.e. Prop A Changed->Write Register B, C, & D->Update data grid->Register D Changed->Update property A & E->etc. These "callbacks" can get long & slow down my application. What can I do to make this process more seemless?

FYI I can't completely remove the data grid view, because of other reasons, even though I believe users use the PropertyGrid > 98% of the time.

Thanks,
--RB
Questionsave a TreeView in database [modified] Pin
reza assar10-May-10 5:59
reza assar10-May-10 5:59 
AnswerRe: save a TreeView in database Pin
Michel Godfroid10-May-10 6:32
Michel Godfroid10-May-10 6:32 
AnswerRe: save a TreeView in database Pin
Pete O'Hanlon10-May-10 9:28
mvePete O'Hanlon10-May-10 9:28 
AnswerRe: save a TreeView in database Pin
Alex Manolescu10-May-10 10:31
Alex Manolescu10-May-10 10:31 
Questionsum calculated with the formula crystal report Pin
koncuk10-May-10 5:32
koncuk10-May-10 5:32 
QuestionWhat is the alternative to memcpy in C#? Pin
Abdulaziz M Zaben10-May-10 4:17
Abdulaziz M Zaben10-May-10 4:17 
AnswerRe: What is the alternative to memcpy in C#? Pin
Matt U.10-May-10 4:41
Matt U.10-May-10 4:41 
AnswerRe: What is the alternative to memcpy in C#? Pin
Peace ON10-May-10 4:41
Peace ON10-May-10 4:41 
AnswerRe: What is the alternative to memcpy in C#? Pin
Abdulaziz M Zaben10-May-10 4:56
Abdulaziz M Zaben10-May-10 4:56 
QuestionHow to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 2:40
CoderForEver10-May-10 2:40 
AnswerRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 3:59
Michel Godfroid10-May-10 3:59 
AnswerRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 4:18
CoderForEver10-May-10 4:18 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 5:10
Michel Godfroid10-May-10 5:10 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver10-May-10 7:24
CoderForEver10-May-10 7:24 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
Michel Godfroid10-May-10 11:15
Michel Godfroid10-May-10 11:15 
GeneralRe: How to work on Mobile Banking(SMS Banking)? Pin
CoderForEver20-May-10 7:38
CoderForEver20-May-10 7:38 
QuestionDataGridView and Deleting Rows Pin
Member 368144310-May-10 2:09
Member 368144310-May-10 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.