Back to Devexpress

AppointmentFormControllerBase.IsConflictResolved() Method

corelibraries-devexpress-dot-xtrascheduler-dot-ui-dot-appointmentformcontrollerbase-4c799ac7.md

latest6.5 KB
Original Source

AppointmentFormControllerBase.IsConflictResolved() Method

Informs whether the appointment is in conflict with another, and they are not reconciled.

Namespace : DevExpress.XtraScheduler.UI

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
public virtual bool IsConflictResolved()
vb
Public Overridable Function IsConflictResolved As Boolean

Returns

TypeDescription
Boolean

true if the appointment conflict is resolved; otherwise, false.

|

Remarks

If the SchedulerOptionsCustomization.AllowAppointmentConflicts setting is AppointmentConflictsMode.Allowed, then the IsConflictResolved method always returns true. The SchedulerControl.AllowAppointmentConflicts event is raised by this method if the SchedulerControl.AllowAppointmentConflicts is set to AppointmentConflictsMode.Custom.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsConflictResolved() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L330

csharp
return;
if (!Controller.IsConflictResolved()) {
    ShowMessageBox(SchedulerLocalizer.GetString(SchedulerStringId.Msg_Conflict), Controller.GetMessageBoxCaption(SchedulerStringId.Msg_Conflict), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L287

csharp
return;
if (!Controller.IsConflictResolved()) {
    ShowMessageBox(SchedulerLocalizer.GetString(SchedulerStringId.Msg_Conflict), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Forms/MyAppointmentEditForm.cs#L90

csharp
// Required to check appointment's conflicts.
if (!controller.IsConflictResolved())
    return;

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/MyAppointmentEditForm.cs#L233

csharp
// Required to check the appointment for conflicts.
if (!controller.IsConflictResolved())
    return;

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L366

vb
End If
If Not Controller.IsConflictResolved() Then
    ShowMessageBox(SchedulerLocalizer.GetString(SchedulerStringId.Msg_Conflict), Controller.GetMessageBoxCaption(SchedulerStringId.Msg_Conflict), MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L350

vb
End If
If Not Controller.IsConflictResolved() Then
    ShowMessageBox(SchedulerLocalizer.GetString(SchedulerStringId.Msg_Conflict), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Forms/MyAppointmentEditForm.vb#L102

vb
' Required to check appointment's conflicts.
If Not controller.IsConflictResolved() Then
    Return

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/MyAppointmentEditForm.vb#L254

vb
' Required to check the appointment for conflicts.
If Not controller.IsConflictResolved() Then
    Return

See Also

CalculateConflictCount()

AppointmentFormControllerBase Class

AppointmentFormControllerBase Members

DevExpress.XtraScheduler.UI Namespace