[]
        
(Showing Draft Content)

C1.Schedule.Status.-ctor

Status Constructor

Status(int)

Initializes a new instance of the Status class with the specified key.

Declaration
public Status(int key)
Public Sub New(key As Integer)
Parameters
Type Name Description
int key

The int value which should be used as status key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Status(Guid)

Initializes a new instance of the Status class with the specified key.

Declaration
public Status(Guid key)
Public Sub New(key As Guid)
Parameters
Type Name Description
Guid key

The Guid value which should be used as status key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Status()

Creates the new custom Status object with default parameters.

Declaration
public Status()
Public Sub New()

Status(StatusTypeEnum)

Creates a new instance of the Status class and initializes it with the specified type.

Declaration
public Status(StatusTypeEnum type)
Public Sub New(type As StatusTypeEnum)
Parameters
Type Name Description
StatusTypeEnum type

The StatusTypeEnum value.

Status(StatusTypeEnum, CultureInfo)

Creates a new instance of the Status class and initializes it with the specified type.

Declaration
public Status(StatusTypeEnum type, CultureInfo culture)
Public Sub New(type As StatusTypeEnum, culture As CultureInfo)
Parameters
Type Name Description
StatusTypeEnum type

The StatusTypeEnum value.

CultureInfo culture

The CultureInfo value.

Status(string)

Creates a new instance of the custom Status object with the specified text.

Declaration
public Status(string text)
Public Sub New(text As String)
Parameters
Type Name Description
string text

The string value.

Status(string, string)

Creates the new custom Status object with specified text and menu caption.

Declaration
public Status(string text, string menuCaption)
Public Sub New(text As String, menuCaption As String)
Parameters
Type Name Description
string text

The string value.

string menuCaption

The menu caption for displaying status in dialogs.

Status(Color, string, string)

Creates the new custom Status object with specified color, text and menu caption.

Declaration
public Status(Color color, string text, string menuCaption)
Public Sub New(color As Color, text As String, menuCaption As String)
Parameters
Type Name Description
Color color

The color which will be used for displaying status.

string text

The string value.

string menuCaption

The menu caption for displaying status in dialogs.

Status(Color, string, string, C1Brush)

Creates the new custom Status object with specified parameters.

Declaration
public Status(Color color, string text, string menuCaption, C1Brush brush)
Public Sub New(color As Color, text As String, menuCaption As String, brush As C1Brush)
Parameters
Type Name Description
Color color

The color which will be used for displaying status.

string text

The string value.

string menuCaption

The menu caption for displaying status in dialogs.

C1Brush brush

The brush which will be used for displaying status.

Status(SerializationInfo, StreamingContext)

Special constructor for deserialization.

Declaration
protected Status(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo.

StreamingContext context

The context information.