Chronos Plugins 5.4.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute Class Reference

Simple example how to provide a combobox with standard values for a property. More...

+ Inheritance diagram for MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute:
+ Collaboration diagram for MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute:

Private Member Functions

System.Collections.IEnumerator System.Collections.IEnumerable. GetEnumerator ()
 

Private Attributes

readonly string[] mDefGreetings = { DefGreeting, "Howdy!", "Good day!" }
 

Detailed Description

Simple example how to provide a combobox with standard values for a property.

Definition at line 39 of file MockSimpleTask.cs.

Member Function Documentation

◆ GetEnumerator()

System.Collections.IEnumerator System.Collections.IEnumerable. MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute.GetEnumerator ( )
private

Definition at line 44 of file MockSimpleTask.cs.

45 {
46 var greetingsList = mDefGreetings.ToList();
47 greetingsList.Add($"Current greeting of {DateTime.Now:HH:mm:ss}");
48 return greetingsList.GetEnumerator();
49 }

References MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute.mDefGreetings.

Member Data Documentation

◆ mDefGreetings

readonly string [] MockPlugin.Tasks.ShowSomeGreeting.DefaultGreetingsAttribute.mDefGreetings = { DefGreeting, "Howdy!", "Good day!" }
private

The documentation for this class was generated from the following file: