Click here to Skip to main content
15,849,182 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to set label text here? Pin
Jassim Rahma27-Jul-12 10:25
Jassim Rahma27-Jul-12 10:25 
AnswerRe: how to set label text here? Pin
Ravi Bhavnani27-Jul-12 10:40
professionalRavi Bhavnani27-Jul-12 10:40 
AnswerRe: how to set label text here? Pin
OriginalGriff27-Jul-12 10:16
mveOriginalGriff27-Jul-12 10:16 
GeneralRe: how to set label text here? Pin
Ravi Bhavnani27-Jul-12 10:41
professionalRavi Bhavnani27-Jul-12 10:41 
GeneralRe: how to set label text here? Pin
OriginalGriff27-Jul-12 10:47
mveOriginalGriff27-Jul-12 10:47 
QuestionTrack two types of values within one variable Pin
hpjchobbes27-Jul-12 5:55
hpjchobbes27-Jul-12 5:55 
AnswerRe: Track two types of values within one variable Pin
SledgeHammer0127-Jul-12 7:28
SledgeHammer0127-Jul-12 7:28 
GeneralRe: Track two types of values within one variable Pin
hpjchobbes27-Jul-12 8:04
hpjchobbes27-Jul-12 8:04 
Thanks for the response! The enum seems like it would be a simpler way to handle this. Since the Rate may be used in multiple different classes, I think I should go with an enum in the Rate class.

C#
public enum ENRateType { Dollar, Percent }

public class Rate
{
    public ENRateType RateType;
    public double Rate;
}

GeneralMessage Removed Pin
27-Jul-12 7:38
professionalN_tro_P27-Jul-12 7:38 
GeneralRe: Track two types of values within one variable Pin
hpjchobbes27-Jul-12 8:18
hpjchobbes27-Jul-12 8:18 
GeneralRe: Track two types of values within one variable Pin
BillWoodruff29-Jul-12 19:35
professionalBillWoodruff29-Jul-12 19:35 
GeneralRe: Track two types of values within one variable Pin
SledgeHammer0127-Jul-12 12:40
SledgeHammer0127-Jul-12 12:40 
GeneralMessage Removed Pin
27-Jul-12 13:22
professionalN_tro_P27-Jul-12 13:22 
GeneralRe: Track two types of values within one variable Pin
SledgeHammer0127-Jul-12 13:33
SledgeHammer0127-Jul-12 13:33 
AnswerRe: Track two types of values within one variable Pin
Eddy Vluggen27-Jul-12 8:13
professionalEddy Vluggen27-Jul-12 8:13 
GeneralRe: Track two types of values within one variable Pin
hpjchobbes27-Jul-12 8:23
hpjchobbes27-Jul-12 8:23 
GeneralRe: Track two types of values within one variable Pin
Eddy Vluggen27-Jul-12 9:24
professionalEddy Vluggen27-Jul-12 9:24 
GeneralRe: Track two types of values within one variable Pin
PIEBALDconsult27-Jul-12 9:15
mvePIEBALDconsult27-Jul-12 9:15 
AnswerRe: Track two types of values within one variable Pin
SledgeHammer0127-Jul-12 12:45
SledgeHammer0127-Jul-12 12:45 
GeneralRe: Track two types of values within one variable Pin
jschell27-Jul-12 12:57
jschell27-Jul-12 12:57 
GeneralRe: Track two types of values within one variable Pin
Paul Conrad28-Jul-12 10:31
professionalPaul Conrad28-Jul-12 10:31 
GeneralMessage Removed Pin
27-Jul-12 13:24
professionalN_tro_P27-Jul-12 13:24 
GeneralRe: Track two types of values within one variable Pin
SledgeHammer0127-Jul-12 13:36
SledgeHammer0127-Jul-12 13:36 
GeneralMessage Removed Pin
27-Jul-12 14:52
professionalN_tro_P27-Jul-12 14:52 
GeneralRe: Track two types of values within one variable Pin
jschell28-Jul-12 7:33
jschell28-Jul-12 7:33 

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.