Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: Append to file that is in use? Pin
SledgeHammer0112-Aug-11 6:47
SledgeHammer0112-Aug-11 6:47 
AnswerRe: Append to file that is in use? Pin
jschell12-Aug-11 8:20
jschell12-Aug-11 8:20 
AnswerRe: Append to file that is in use? Pin
Roger Wright12-Aug-11 19:29
professionalRoger Wright12-Aug-11 19:29 
AnswerRe: Append to file that is in use? Pin
jschell13-Aug-11 7:01
jschell13-Aug-11 7:01 
AnswerRe: Append to file that is in use? Pin
Oludayo Alli16-Aug-11 4:20
Oludayo Alli16-Aug-11 4:20 
AnswerRe: Append to file that is in use? Pin
RichardGrimmer17-Aug-11 5:46
RichardGrimmer17-Aug-11 5:46 
QuestionC# OOP Question: Best way to setup these classes? Pin
Goalie3512-Aug-11 4:46
Goalie3512-Aug-11 4:46 
AnswerRe: C# OOP Question: Best way to setup these classes? Pin
BobJanova12-Aug-11 6:00
BobJanova12-Aug-11 6:00 
I don't understand the purpose of the WookbookPart.

The simple approach to this is that there are ownership relationships here (a sheet belongs to a book, and a range to a sheet), which implies classes like:

class Workbook {
 List<Worksheet> Sheets;
}

class Worksheet {
 Workbook Owner;
 List<Range> Ranges;
 
 Cell GetCell(int x, int y);
}

class Range {
 Worksheet Owner;
 List<Cell> Cells;
 // formatting properties etc
}

class Cell {
 Worksheet Sheet;
 object Value;
}


I'm not sure that the list of ranges actually makes sense as ranges are dynamically created (correct?) so there isn't a fixed list to add to and read back from. I've given each class a reference to its owner, which can be null if you have 'orphaned' references (creating a sheet dynamically and not yet added to the book, etc). You'd then want to make sure that when adding things to the list in the parent, they had their Owner property updated accordingly.
GeneralRe: C# OOP Question: Best way to setup these classes? Pin
Shameel12-Aug-11 6:06
professionalShameel12-Aug-11 6:06 
Questionload big image in program Pin
Mohsen Shahindust12-Aug-11 4:24
Mohsen Shahindust12-Aug-11 4:24 
AnswerRe: load big image in program Pin
Blue_Boy12-Aug-11 4:31
Blue_Boy12-Aug-11 4:31 
GeneralRe: load big image in program Pin
Matt Meyer12-Aug-11 4:39
Matt Meyer12-Aug-11 4:39 
GeneralRe: load big image in program Pin
Mohsen Shahindust12-Aug-11 5:01
Mohsen Shahindust12-Aug-11 5:01 
AnswerWhat's the image for? Pin
MicroVirus12-Aug-11 4:43
MicroVirus12-Aug-11 4:43 
GeneralRe: What's the image for? Pin
Mohsen Shahindust12-Aug-11 5:07
Mohsen Shahindust12-Aug-11 5:07 
AnswerRe: load big image in program Pin
BobJanova12-Aug-11 6:06
BobJanova12-Aug-11 6:06 
GeneralRe: load big image in program Pin
MicroVirus12-Aug-11 8:36
MicroVirus12-Aug-11 8:36 
GeneralRe: load big image in program Pin
BobJanova12-Aug-11 8:43
BobJanova12-Aug-11 8:43 
GeneralRe: load big image in program Pin
MicroVirus12-Aug-11 8:55
MicroVirus12-Aug-11 8:55 
AnswerRe: load big image in program Pin
Oludayo Alli20-Aug-11 7:06
Oludayo Alli20-Aug-11 7:06 
Question1st year IT student seeking mentor Pin
Njabulo Mpungose12-Aug-11 3:40
Njabulo Mpungose12-Aug-11 3:40 
AnswerRe: 1st year IT student seeking mentor Pin
Not Active12-Aug-11 4:21
mentorNot Active12-Aug-11 4:21 
AnswerRe: 1st year IT student seeking mentor Pin
Blue_Boy12-Aug-11 4:22
Blue_Boy12-Aug-11 4:22 
AnswerRe: 1st year IT student seeking mentor Pin
OriginalGriff12-Aug-11 8:53
mveOriginalGriff12-Aug-11 8:53 
Questionhow to connect biometric device in c# .net Pin
harshal4patil11-Aug-11 23:27
harshal4patil11-Aug-11 23:27 

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.