Click here to Skip to main content
15,913,941 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Blobs (SQL and VS.NET) Pin
dortoh2-Jan-06 15:20
dortoh2-Jan-06 15:20 
GeneralRe: Blobs (SQL and VS.NET) Pin
Rob Graham4-Jan-06 3:57
Rob Graham4-Jan-06 3:57 
QuestionSecurity Exception Pin
zt.Prog2-Jan-06 4:18
zt.Prog2-Jan-06 4:18 
AnswerRe: Security Exception Pin
S. Senthil Kumar2-Jan-06 5:09
S. Senthil Kumar2-Jan-06 5:09 
QuestionDesign Question Pin
Andy *M*1-Jan-06 12:33
Andy *M*1-Jan-06 12:33 
AnswerRe: Design Question Pin
Leslie Sanford1-Jan-06 13:44
Leslie Sanford1-Jan-06 13:44 
GeneralRe: Design Question Pin
Andy *M*1-Jan-06 14:36
Andy *M*1-Jan-06 14:36 
GeneralRe: Design Question Pin
Leslie Sanford1-Jan-06 15:37
Leslie Sanford1-Jan-06 15:37 
Andy MacAngus wrote:
The states are:

* Optional
* Potential, but optional
* Mandatory
* Potential, but mandatory

Potential meaning that a certain condition must be met first. Any potential action can transition to plain optional or mandatory. Certain actions are, by necessity, potential while there is a mandatory action available as the condition to be met is the invokation of the mandatory action.


What I was thinking is that you could have a list of all actions, maybe represent these actions as an enumeration. Your application has a number of discrete states. Each state understands which actions are optional, potential, etc. You could possibly store this information in some kind of lookup table.

Anyway, my point is to not look necessarily at the actions as states, but rather have states that know what actions are mandatory, optional, etc.

Also, if some actions are mandatory, you could have a state execute them regardless of whether the user has selected them. In your UI, you could make sure the right radio buttons, check boxes, or whatever are selected programmically (and maybe switch to readonly so they can't be deselected).

I could go on and on. Smile | :) Hope this has given you some ideas.

Andy MacAngus wrote:
I will look in to state machines, but I have to admit to not having read much about them. I'll look for some information on it. If you know of a good article to read on the subject I'd be grateful for a recommendation.


You may find Part I[^] of my State Machine Toolkit articles helpful.

Here is an article[^] describing finite state machines and UML statecharts.

And an article[^] by H. S. Lahman. One of my personal heros and a regular on comp.object.
Questionclass String Pin
zpeng1-Jan-06 10:59
zpeng1-Jan-06 10:59 
AnswerRe: class String Pin
mikailcetinkaya2-Jan-06 21:38
mikailcetinkaya2-Jan-06 21:38 
GeneralRe: class String Pin
zpeng3-Jan-06 11:00
zpeng3-Jan-06 11:00 
QuestionDetecting the onscreen keyboard Pin
Andreas Ringdal1-Jan-06 4:59
Andreas Ringdal1-Jan-06 4:59 
AnswerRe: Detecting the onscreen keyboard Pin
mikailcetinkaya2-Jan-06 21:45
mikailcetinkaya2-Jan-06 21:45 
QuestionSend SMS From Within My PC Pin
ungmonirath@gmail.com31-Dec-05 21:51
ungmonirath@gmail.com31-Dec-05 21:51 
AnswerRe: Send SMS From Within My PC Pin
mikailcetinkaya2-Jan-06 21:24
mikailcetinkaya2-Jan-06 21:24 
QuestionURL parsing Pin
Ravi Bhavnani31-Dec-05 12:50
professionalRavi Bhavnani31-Dec-05 12:50 
AnswerRe: URL parsing Pin
leppie31-Dec-05 13:33
leppie31-Dec-05 13:33 
GeneralRe: URL parsing Pin
Ravi Bhavnani31-Dec-05 13:35
professionalRavi Bhavnani31-Dec-05 13:35 
QuestionAssembly.Load() Pin
HakunaMatada31-Dec-05 1:05
HakunaMatada31-Dec-05 1:05 
AnswerRe: Assembly.Load() Pin
Gerben Jongerius31-Dec-05 1:21
Gerben Jongerius31-Dec-05 1:21 
GeneralRe: Assembly.Load() Pin
HakunaMatada31-Dec-05 1:39
HakunaMatada31-Dec-05 1:39 
QuestionGiving UIPermissions to the .Net applet Pin
TheDen30-Dec-05 5:29
TheDen30-Dec-05 5:29 
AnswerRe: Giving UIPermissions to the .Net applet Pin
mikailcetinkaya2-Jan-06 21:36
mikailcetinkaya2-Jan-06 21:36 
GeneralRe: Giving UIPermissions to the .Net applet Pin
TheDen2-Jan-06 23:02
TheDen2-Jan-06 23:02 
Questionhow to override the button draw event? Pin
Sasuko29-Dec-05 23:37
Sasuko29-Dec-05 23:37 

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.