Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: Time Difference Calculation In C# Pin
Sanket.Patil12-Sep-10 18:14
Sanket.Patil12-Sep-10 18:14 
GeneralRe: Time Difference Calculation In C# Pin
Peter_in_278012-Sep-10 18:22
professionalPeter_in_278012-Sep-10 18:22 
AnswerRe: Time Difference Calculation In C# Pin
Abhinav S12-Sep-10 18:25
Abhinav S12-Sep-10 18:25 
GeneralRe: Time Difference Calculation In C# Pin
Sanket.Patil12-Sep-10 19:33
Sanket.Patil12-Sep-10 19:33 
AnswerRe: Time Difference Calculation In C# Pin
Mycroft Holmes12-Sep-10 19:52
professionalMycroft Holmes12-Sep-10 19:52 
AnswerRe: Time Difference Calculation In C# Pin
J4amieC12-Sep-10 23:25
J4amieC12-Sep-10 23:25 
AnswerRe: Time Difference Calculation In C# Pin
Luc Pattyn13-Sep-10 2:36
sitebuilderLuc Pattyn13-Sep-10 2:36 
QuestionHow to represent this type of data in a c# app? Pin
stephen.darling12-Sep-10 11:37
stephen.darling12-Sep-10 11:37 
Hello coders,

I am new so please go easy Smile | :)

OK, my application has a licensed state that is either 1)Valid 2)Trial 3)Invalid or 4)Expired

I will have an object (class) called license to handel this, along with the main form of my app.

Now I have a few questions.

1)How should I represent the available options?

Should I use enum licinse_state { trial, full etc

or simply set the property in the relevent function to a string
e.g

if(license is a full one)
string license_state = "FULL"
return license_state

2)What functions should go in the license class, what in the main form?

3) If I have a form to get the serial number, should this be called from my main form, then the serial number passed into my license class, or should I invoke the license class from my main form and then call the serial dialog from the license class?

Bit confused about what to put where, and what to call from what!

Thank you!
AnswerRe: How to represent this type of data in a c# app? Pin
Luc Pattyn12-Sep-10 11:57
sitebuilderLuc Pattyn12-Sep-10 11:57 
AnswerRe: How to represent this type of data in a c# app? Pin
Keith Barrow12-Sep-10 12:04
professionalKeith Barrow12-Sep-10 12:04 
AnswerRe: How to represent this type of data in a c# app? Pin
PIEBALDconsult12-Sep-10 12:36
mvePIEBALDconsult12-Sep-10 12:36 
GeneralRe: How to represent this type of data in a c# app? Pin
stephen.darling12-Sep-10 16:10
stephen.darling12-Sep-10 16:10 
GeneralRe: How to represent this type of data in a c# app? Pin
PIEBALDconsult12-Sep-10 16:22
mvePIEBALDconsult12-Sep-10 16:22 
QuestionTaking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 8:50
teknolog12312-Sep-10 8:50 
AnswerRe: Taking screenshots of PCs on LAN Pin
OriginalGriff12-Sep-10 9:23
mveOriginalGriff12-Sep-10 9:23 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 9:29
teknolog12312-Sep-10 9:29 
GeneralRe: Taking screenshots of PCs on LAN Pin
OriginalGriff12-Sep-10 9:43
mveOriginalGriff12-Sep-10 9:43 
GeneralRe: Taking screenshots of PCs on LAN Pin
Eddy Vluggen12-Sep-10 9:53
professionalEddy Vluggen12-Sep-10 9:53 
AnswerRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 9:53
sitebuilderLuc Pattyn12-Sep-10 9:53 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 10:04
teknolog12312-Sep-10 10:04 
GeneralRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 10:12
sitebuilderLuc Pattyn12-Sep-10 10:12 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 10:15
teknolog12312-Sep-10 10:15 
GeneralRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 10:18
sitebuilderLuc Pattyn12-Sep-10 10:18 
QuestionPainting on transparent background multiple times Pin
fdsfsa76f7sa612-Sep-10 1:47
fdsfsa76f7sa612-Sep-10 1:47 
AnswerRe: Painting on transparent background multiple times Pin
Abhishek Sur12-Sep-10 2:39
professionalAbhishek Sur12-Sep-10 2:39 

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.