Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
Questiondatabinding + INotifyPropertyChanged Pin
jogisarge18-Feb-09 9:58
jogisarge18-Feb-09 9:58 
AnswerRe: databinding + INotifyPropertyChanged Pin
ABitSmart18-Feb-09 18:22
ABitSmart18-Feb-09 18:22 
QuestionSupport to create graph editor ? [modified] Pin
GuimaSun18-Feb-09 9:24
GuimaSun18-Feb-09 9:24 
AnswerRe: Support to create graph editor ? Pin
Henry Minute18-Feb-09 10:18
Henry Minute18-Feb-09 10:18 
QuestionDynamically create datagrid with prepopulated text boxes Pin
jullesbonnot18-Feb-09 8:20
jullesbonnot18-Feb-09 8:20 
AnswerRe: Dynamically create datagrid with prepopulated text boxes Pin
Calin Tatar18-Feb-09 9:14
Calin Tatar18-Feb-09 9:14 
GeneralRe: Dynamically create datagrid with prepopulated text boxes Pin
Calin Tatar18-Feb-09 9:22
Calin Tatar18-Feb-09 9:22 
QuestionJagged array initialization Pin
t_feras18-Feb-09 7:37
t_feras18-Feb-09 7:37 
Hello,

I am trying to initialize a jagged array as shown below. "Screen2 button IDs" and "Screen3 button IDs" arrays are a replica of the "Default screen button IDs" array. I was hoping to find a way where I can declare and initialize a 1-dimensional array similar to the "Default screen button IDs" one then use this array in my jagged array initialization. This will help me preserve some space and make the array look shorter. Any advice on how to achieve this?

Thanks,

<pre>BUTTON_ID[][] CONTEXT_MENU_LIST = new BUTTON_ID[][]
{
//System off
new BUTTON_ID[]{BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE},

//Default Screen button IDs
new BUTTON_ID[] {BUTTON_ID.DEFAULT, BUTTON_ID.EXAMINE, BUTTON_ID.CLIP,
BUTTON_ID.GAIN, BUTTON_ID.PAGE1, BUTTON_ID.FROZEN,
BUTTON_ID.SAVE, BUTTON_ID.PAGE2, BUTTON_ID.INACTIVE,
BUTTON_ID.DECREASE_LENGTH, BUTTON_ID.INCREASE_LENGTH,
BUTTON_ID.DECREASE_WIDTH, BUTTON_ID.INCREASE_WIDTH},

//Clip View Screen
new BUTTON_ID[] {BUTTON_ID.INACTIVE, BUTTON_ID.PAGE1, BUTTON_ID.FROZEN,
BUTTON_ID.AUTO_GAIN, BUTTON_ID.CLIP, BUTTON_ID.INACTIVE,
BUTTON_ID.SAVE, BUTTON_ID.PAGE2, BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE, BUTTON_ID.INACTIVE,BUTTON_ID.INACTIVE,
BUTTON_ID.INACTIVE}

//Screen2 button IDs
new BUTTON_ID[] {BUTTON_ID.DEFAULT, BUTTON_ID.EXAMINE, BUTTON_ID.CLIP,
BUTTON_ID.GAIN, BUTTON_ID.PAGE1, BUTTON_ID.FROZEN,
BUTTON_ID.SAVE, BUTTON_ID.PAGE2, BUTTON_ID.INACTIVE,
BUTTON_ID.DECREASE_LENGTH, BUTTON_ID.INCREASE_LENGTH,
BUTTON_ID.DECREASE_WIDTH, BUTTON_ID.INCREASE_WIDTH}

//Screen3 button IDs
new BUTTON_ID[] {BUTTON_ID.DEFAULT, BUTTON_ID.EXAMINE, BUTTON_ID.CLIP,
BUTTON_ID.GAIN, BUTTON_ID.PAGE1, BUTTON_ID.FROZEN,
BUTTON_ID.SAVE, BUTTON_ID.PAGE2, BUTTON_ID.INACTIVE,
BUTTON_ID.DECREASE_LENGTH, BUTTON_ID.INCREASE_LENGTH,
BUTTON_ID.DECREASE_WIDTH, BUTTON_ID.INCREASE_WIDTH}
};</pre>
AnswerRe: Jagged array initialization Pin
harold aptroot18-Feb-09 10:12
harold aptroot18-Feb-09 10:12 
GeneralRe: Jagged array initialization Pin
t_feras18-Feb-09 10:37
t_feras18-Feb-09 10:37 
GeneralRe: Jagged array initialization Pin
harold aptroot18-Feb-09 11:06
harold aptroot18-Feb-09 11:06 
JokeRe: Jagged array initialization Pin
DaveyM6918-Feb-09 11:09
professionalDaveyM6918-Feb-09 11:09 
GeneralRe: Jagged array initialization Pin
harold aptroot18-Feb-09 11:14
harold aptroot18-Feb-09 11:14 
GeneralRe: Jagged array initialization Pin
t_feras18-Feb-09 11:15
t_feras18-Feb-09 11:15 
GeneralRe: Jagged array initialization Pin
harold aptroot18-Feb-09 12:10
harold aptroot18-Feb-09 12:10 
GeneralRe: Jagged array initialization Pin
t_feras18-Feb-09 12:31
t_feras18-Feb-09 12:31 
AnswerRe: Jagged array initialization Pin
Luc Pattyn18-Feb-09 13:10
sitebuilderLuc Pattyn18-Feb-09 13:10 
QuestionDisplaying Ritch textbox contents the same as it is printed Pin
hendrik18-Feb-09 7:29
hendrik18-Feb-09 7:29 
AnswerRe: Displaying Ritch textbox contents the same as it is printed Pin
Dave Kreskowiak18-Feb-09 9:00
mveDave Kreskowiak18-Feb-09 9:00 
QuestionDrop event in RichText Box Pin
Lijo Rajan18-Feb-09 6:37
Lijo Rajan18-Feb-09 6:37 
AnswerRe: Drop event in RichText Box Pin
vaghelabhavesh18-Feb-09 7:32
vaghelabhavesh18-Feb-09 7:32 
QuestionProgramming for synchronization of local database with remote server database. Pin
Digubha18-Feb-09 5:43
Digubha18-Feb-09 5:43 
AnswerRe: Programming for synchronization of local database with remote server database. Pin
Ennis Ray Lynch, Jr.18-Feb-09 6:40
Ennis Ray Lynch, Jr.18-Feb-09 6:40 
GeneralRe: Programming for synchronization of local database with remote server database. Pin
Mycroft Holmes18-Feb-09 21:39
professionalMycroft Holmes18-Feb-09 21:39 
GeneralRe: Programming for synchronization of local database with remote server database. Pin
Ennis Ray Lynch, Jr.19-Feb-09 2:53
Ennis Ray Lynch, Jr.19-Feb-09 2:53 

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.