Click here to Skip to main content
15,902,634 members
Home / Discussions / C#
   

C#

 
AnswerRe: Image deblur Pin
OriginalGriff18-Dec-19 9:53
mveOriginalGriff18-Dec-19 9:53 
AnswerRe: Image deblur Pin
Richard MacCutchan18-Dec-19 21:26
mveRichard MacCutchan18-Dec-19 21:26 
QuestionVFPOLEDB Encoding issue Pin
pepl8016-Dec-19 12:40
pepl8016-Dec-19 12:40 
AnswerRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak16-Dec-19 13:48
mveDave Kreskowiak16-Dec-19 13:48 
GeneralRe: VFPOLEDB Encoding issue Pin
pepl8016-Dec-19 23:32
pepl8016-Dec-19 23:32 
GeneralRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak17-Dec-19 3:03
mveDave Kreskowiak17-Dec-19 3:03 
GeneralRe: VFPOLEDB Encoding issue Pin
Gerry Schmitz17-Dec-19 5:54
mveGerry Schmitz17-Dec-19 5:54 
Questionhow to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 12:08
Rohan Varendani16-Dec-19 12:08 
you will need an event target (e.g. a button), az event list, and events. To solve this problem, create the required data structures for event management, and test every required functionality. For optimal testability, every registered anonymous function must write different text on the console.

Base structure:

Event class, which stores the event function registered by the user (anonymous function). It gives two arguments to the listener function: the event's target (need to use base class, see later), and itself. It stores a public bool member, which if set true, the event chain stops, and further events are not run. This member has a default value of false and can be set from the listener function.

Event list class, which stores events. It can add and remove events. When adding new events, a bool argument defines if the event goes to the beginning or the end of the list. It can run every list in it sequentially with a method, and in the method, it uses a custom iterator for iteration.

Event target class. It has an event list, which gets the event target. It has a method for registering new events.

Button class. Inherits from the event target class. Has a click method, which runs the registered events.

Test cases:

1. Register an event to a new button. See if the button object is available from the event listener function.

2. Register two events to a new button in a way that the events are appended to the end of the list. Register a third event to the beginning of the list. See if they are in correct order.

3. Register three events to a new button. In the second event listener function stop the event chain. Make sure that the third listener function does not run.

AnswerRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 16:57
professionalMycroft Holmes16-Dec-19 16:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 20:57
Rohan Varendani16-Dec-19 20:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 21:31
mveRichard MacCutchan16-Dec-19 21:31 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 21:34
Rohan Varendani16-Dec-19 21:34 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 22:00
mveRichard MacCutchan16-Dec-19 22:00 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 22:35
Rohan Varendani16-Dec-19 22:35 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 22:41
mveRichard MacCutchan16-Dec-19 22:41 
GeneralRe: how to make a minimalist event manager with c# Pin
OriginalGriff16-Dec-19 23:10
mveOriginalGriff16-Dec-19 23:10 
AnswerRe: how to make a minimalist event manager with c# Pin
#realJSOP23-Dec-19 0:47
professional#realJSOP23-Dec-19 0:47 
GeneralRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 22:29
professionalMycroft Holmes16-Dec-19 22:29 
AnswerRe: how to make a minimalist event manager with c# Pin
#realJSOP23-Dec-19 0:46
professional#realJSOP23-Dec-19 0:46 
AnswerRe: how to make a minimalist event manager with c# Pin
Gerry Schmitz17-Dec-19 6:01
mveGerry Schmitz17-Dec-19 6:01 
QuestionPrint on roll paper using report rdlc and reportviewer Pin
Member 1419221613-Dec-19 8:56
Member 1419221613-Dec-19 8:56 
AnswerRe: Print on roll paper using report rdlc and reportviewer Pin
Richard MacCutchan13-Dec-19 9:20
mveRichard MacCutchan13-Dec-19 9:20 
QuestionTracking Data Changes Pin
Kevin Marois13-Dec-19 8:41
professionalKevin Marois13-Dec-19 8:41 
AnswerRe: Tracking Data Changes Pin
Eddy Vluggen13-Dec-19 11:35
professionalEddy Vluggen13-Dec-19 11:35 
GeneralRe: Tracking Data Changes Pin
Kevin Marois13-Dec-19 11:43
professionalKevin Marois13-Dec-19 11:43 

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.