Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
Jeremy Kimball25-Sep-03 20:06
Jeremy Kimball25-Sep-03 20:06 
GeneralRe: How to blit a System.Drawing.Image into DirectDraw.Surface ? Pin
ralfoide26-Sep-03 8:38
ralfoide26-Sep-03 8:38 
GeneralRichTextBox Auto Scroll Down Pin
zecodela25-Sep-03 18:27
zecodela25-Sep-03 18:27 
GeneralRe: RichTextBox Auto Scroll Down Pin
jtmtv1825-Sep-03 20:00
jtmtv1825-Sep-03 20:00 
GeneralRe: RichTextBox Auto Scroll Down Pin
J. Dunlap25-Sep-03 20:15
J. Dunlap25-Sep-03 20:15 
GeneralRe: RichTextBox Auto Scroll Down Pin
zecodela25-Sep-03 20:38
zecodela25-Sep-03 20:38 
GeneralDesign question... Pin
sharkfish25-Sep-03 14:13
sharkfish25-Sep-03 14:13 
GeneralRe: Design question... Pin
sharkfish25-Sep-03 15:34
sharkfish25-Sep-03 15:34 
What do you think of this (pseudocode)?:

class empInfo {

string ssNumber;
decimal hourlyRate;
DateTime dateOfBirth;

  securitySetter(empInfo) {
  securityCollection = security.getSecurity(empInfo);
  foreach (property prop in empInfo)
  {
   foreach {securityItem sItem in securityCollection)
   {
       if (sItem.access(prop))
       {
          set.prop = "Not accessible";
          //or set a code that I can read in the asp.net/forms interface in the datagrid
       }
   }
  }
  return empInfo
 }
}

----

I'm concerned about handling the database calls, since building the securityCollection requires a trip to the database, then building the empInfo object requires a trip to the database. Or maybe this cannot be avoided. Cacheing security information for objects would also be memory intensive?

Oh, and important...how can I do this so that ALL empInfo objects in a collection are taken care of for a particular session at one time, without having to re-set for each instantiation?

Any advice is appreciated.
GeneralMaking a file readOnly Pin
kman25-Sep-03 11:36
kman25-Sep-03 11:36 
GeneralRe: Making a file readOnly Pin
Wjousts25-Sep-03 11:46
Wjousts25-Sep-03 11:46 
GeneralRe: Making a file readOnly Pin
kman25-Sep-03 11:50
kman25-Sep-03 11:50 
GeneralRe: Making a file readOnly Pin
Wjousts25-Sep-03 12:00
Wjousts25-Sep-03 12:00 
GeneralRe: Making a file readOnly Pin
kman25-Sep-03 12:17
kman25-Sep-03 12:17 
QuestionToolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 11:29
Wjousts25-Sep-03 11:29 
AnswerRe: Toolbar button circumvents textbox validation? Pin
ankita patel25-Sep-03 12:24
ankita patel25-Sep-03 12:24 
GeneralRe: Toolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 13:05
Wjousts25-Sep-03 13:05 
AnswerRe: Toolbar button circumvents textbox validation? Pin
J. Dunlap25-Sep-03 13:12
J. Dunlap25-Sep-03 13:12 
GeneralRe: Toolbar button circumvents textbox validation? Pin
Wjousts25-Sep-03 13:34
Wjousts25-Sep-03 13:34 
GeneralRe: Toolbar button circumvents textbox validation? Pin
James T. Johnson25-Sep-03 17:29
James T. Johnson25-Sep-03 17:29 
GeneralRe: Toolbar button circumvents textbox validation? Pin
Wjousts26-Sep-03 4:31
Wjousts26-Sep-03 4:31 
GeneralCreating a Wizard Type Application Pin
Mark Sanders25-Sep-03 9:53
Mark Sanders25-Sep-03 9:53 
GeneralRe: Creating a Wizard Type Application Pin
Wjousts25-Sep-03 13:21
Wjousts25-Sep-03 13:21 
GeneralRe: Creating a Wizard Type Application Pin
Azel Low27-Sep-03 6:15
Azel Low27-Sep-03 6:15 
GeneralProblems in VS .NET 2003 Pin
abbomar25-Sep-03 9:24
abbomar25-Sep-03 9:24 
Generalre: socket connection to a url Pin
mikemilano25-Sep-03 8:23
mikemilano25-Sep-03 8:23 

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.