Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
QuestionRe: problem in Range selection Pin
sailesh_gupta14-May-08 23:59
sailesh_gupta14-May-08 23:59 
AnswerRe: problem in Range selection Pin
Christian Graus15-May-08 0:41
protectorChristian Graus15-May-08 0:41 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 0:52
sailesh_gupta15-May-08 0:52 
QuestionRe: problem in Range selection Pin
CPallini15-May-08 0:56
mveCPallini15-May-08 0:56 
AnswerRe: problem in Range selection Pin
sailesh_gupta15-May-08 1:06
sailesh_gupta15-May-08 1:06 
GeneralRe: problem in Range selection Pin
CPallini15-May-08 2:02
mveCPallini15-May-08 2:02 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 2:09
sailesh_gupta15-May-08 2:09 
GeneralRe: problem in Range selection Pin
CPallini15-May-08 2:28
mveCPallini15-May-08 2:28 
Well, I think you need to re-design a bit your application. probably you need to let the user to define a set of classes partitioning the range.
For instance (Assuming adjacent interval classes):
Class  min    max   assigned value
  1      0      2       a
  2      3      5       b
  3      6      9       c
  4     10     10       d


You can do that in several ways, neverthless a simple approach is the following:
the program starts with one default class
Class  min    max   assigned value
  1     0      10       a

The user may choose to split the interval by choosing the discriminator value, suppose 3, this will produce:
Class  min    max   assigned value
  1     0       3       a
  2     4      10       b

and so on.

Note that user may only choose the descriminator (and class assigned value, i.e. a, b,...) properly rearranging intervals it is a program duty.


Hope that helps.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 3:24
sailesh_gupta15-May-08 3:24 
GeneralRe: problem in Range selection Pin
Christian Graus15-May-08 0:58
protectorChristian Graus15-May-08 0:58 
Questioninterlock exchange issue Pin
George_George14-May-08 23:23
George_George14-May-08 23:23 
AnswerRe: interlock exchange issue Pin
S. Senthil Kumar15-May-08 1:22
S. Senthil Kumar15-May-08 1:22 
GeneralRe: interlock exchange issue Pin
George_George15-May-08 1:31
George_George15-May-08 1:31 
QuestionSome advice for web crawling - html parsing. Pin
George Sp.14-May-08 23:17
George Sp.14-May-08 23:17 
QuestionGlobalization Pin
Member 475670914-May-08 23:16
Member 475670914-May-08 23:16 
AnswerRe: Globalization Pin
Christian Graus14-May-08 23:54
protectorChristian Graus14-May-08 23:54 
Questionfree SMS xml web service Pin
Amr M. K.14-May-08 23:04
Amr M. K.14-May-08 23:04 
AnswerRe: free SMS xml web service Pin
Christian Graus14-May-08 23:54
protectorChristian Graus14-May-08 23:54 
QuestionCompress an Image to a small JPEG Pin
anderslundsgard14-May-08 22:14
anderslundsgard14-May-08 22:14 
AnswerRe: Compress an Image to a small JPEG Pin
Christian Graus14-May-08 23:55
protectorChristian Graus14-May-08 23:55 
Questionauto position Pin
benjamin yap14-May-08 21:16
benjamin yap14-May-08 21:16 
AnswerRe: auto position Pin
sunspeed14-May-08 21:39
sunspeed14-May-08 21:39 
GeneralRe: auto position Pin
benjamin yap14-May-08 21:53
benjamin yap14-May-08 21:53 
GeneralRe: auto position Pin
dan!sh 14-May-08 22:07
professional dan!sh 14-May-08 22:07 
GeneralRe: auto position Pin
sunspeed14-May-08 22:11
sunspeed14-May-08 22:11 

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.