[]
        
(Showing Draft Content)

C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog

NewAppointmentDialog Method

NewAppointmentDialog(VisualInterval)

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment.

Declaration
public void NewAppointmentDialog(VisualInterval forInterval)
Parameters
Type Name Description
VisualInterval forInterval
<xref href="C1.WPF.Schedule.VisualInterval" data-throw-if-not-resolved="false"></xref> that determines an initial period of time for

a creating C1.Schedule.Appointment.

Remarks

This methods implements the NewAppointmentDialogCommand command.

NewAppointmentDialog()

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment object. Edit Appointment dialog is initialized according to the SelectedDateTimeInterval property value if it is not null; or according to the current date and time and the VisualIntervalScale property value otherwise.

Declaration
public void NewAppointmentDialog()
Remarks

This methods implements the NewAppointmentDialogCommand command.

NewAppointmentDialog(DateTime, DateTime, bool?)

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment object with the specified parameters.

Declaration
public void NewAppointmentDialog(DateTime start, DateTime end, bool? allDayEvent)
Parameters
Type Name Description
DateTime start

The start value.

DateTime end

The end value.

bool? allDayEvent

The bool value specifying whether appointment is all-day event.

NewAppointmentDialog(DateTime, DateTime, bool?, BaseObject)

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment object with the specified parameters.

Declaration
public void NewAppointmentDialog(DateTime start, DateTime end, bool? allDayEvent, BaseObject groupOwner)
Parameters
Type Name Description
DateTime start

The start value.

DateTime end

The end value.

bool? allDayEvent

The bool value specifying whether appointment is all-day event.

BaseObject groupOwner

The object determining SchedulerGroupItemen for which appointment should be created.

NewAppointmentDialog(DateTime, DateTime)

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment object with the specified start and end values.

Declaration
public void NewAppointmentDialog(DateTime start, DateTime end)
Parameters
Type Name Description
DateTime start

The start value.

DateTime end

The end value.

Remarks

The value of the C1.Schedule.Appointment.AllDayEvent property is determined according the start and end values.

NewAppointmentDialog(DateTime, DateTime, BaseObject)

Shows the Edit Appointment dialog for the creation of a new C1.Schedule.Appointment object with the specified start and end values.

Declaration
public void NewAppointmentDialog(DateTime start, DateTime end, BaseObject groupOwner)
Parameters
Type Name Description
DateTime start

The start value.

DateTime end

The end value.

BaseObject groupOwner

The object determining SchedulerGroupItemen for which appointment should be created.

Remarks

The value of the C1.Schedule.Appointment.AllDayEvent property is determined according the start and end values.