# C1.Win.Schedule.Forms.AppointmentForm.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*">AppointmentForm Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*"></a>
<h4 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_C1_Win_Schedule_C1Schedule_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor(C1.Win.Schedule.C1Schedule)">AppointmentForm(C1Schedule)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.html">AppointmentForm</a> form
with default settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AppointmentForm(C1Schedule schedule)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(schedule As C1Schedule)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a></td>
      <td><span class="parametername">schedule</span></td>
      <td><p>The owning <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*"></a>
<h4 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_C1_Win_Schedule_C1Schedule_System_DateTime_System_DateTime_System_Boolean_System_Boolean_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor(C1.Win.Schedule.C1Schedule,System.DateTime,System.DateTime,System.Boolean,System.Boolean)">AppointmentForm(C1Schedule, DateTime, DateTime, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.html">AppointmentForm</a> form
with default settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AppointmentForm(C1Schedule schedule, DateTime start, DateTime end, bool allDay, bool recurring)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(schedule As C1Schedule, start As Date, [end] As Date, allDay As Boolean, recurring As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a></td>
      <td><span class="parametername">schedule</span></td>
      <td><p>The owning <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start of an appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The end of an appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">allDay</span></td>
      <td><p>Determines whether the new appointment should be
an AllDay event.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">recurring</span></td>
      <td><p>Determines whether the new appointment should be recurring.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*"></a>
<h4 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_C1_Win_Schedule_C1Schedule_C1_Schedule_Appointment_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor(C1.Win.Schedule.C1Schedule,C1.Schedule.Appointment)">AppointmentForm(C1Schedule, Appointment)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.html">AppointmentForm</a> form
for editing of the specified <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AppointmentForm(C1Schedule schedule, Appointment appointment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(schedule As C1Schedule, appointment As Appointment)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a></td>
      <td><span class="parametername">schedule</span></td>
      <td><p>The owning <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Appointment</span></td>
      <td><span class="parametername">appointment</span></td>
      <td><p>The <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*"></a>
<h4 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_C1_Win_Schedule_C1Schedule_C1_Schedule_Appointment_System_Boolean_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor(C1.Win.Schedule.C1Schedule,C1.Schedule.Appointment,System.Boolean)">AppointmentForm(C1Schedule, Appointment, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.html">AppointmentForm</a> form
for editing of the specified <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AppointmentForm(C1Schedule schedule, Appointment appointment, bool editRecurrence)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(schedule As C1Schedule, appointment As Appointment, editRecurrence As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a></td>
      <td><span class="parametername">schedule</span></td>
      <td><p>The owning <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Appointment</span></td>
      <td><span class="parametername">appointment</span></td>
      <td><p>The <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">editRecurrence</span></td>
      <td><p>Determines whether the <a class="xref" href="C1.Win.Schedule.Forms.RecurrenceForm.html">RecurrenceForm</a> dialog should be shown after the form opening.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Schedule_Forms_AppointmentForm__ctor_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor*"></a>
<h4 id="C1_Win_Schedule_Forms_AppointmentForm__ctor_C1_Win_Schedule_C1Schedule_C1_Schedule_Appointment_System_Boolean_System_Boolean_" data-uid="C1.Win.Schedule.Forms.AppointmentForm.#ctor(C1.Win.Schedule.C1Schedule,C1.Schedule.Appointment,System.Boolean,System.Boolean)">AppointmentForm(C1Schedule, Appointment, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.html">AppointmentForm</a> form
for editing of the specified <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AppointmentForm(C1Schedule schedule, Appointment appointment, bool editRecurrence, bool isNew)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(schedule As C1Schedule, appointment As Appointment, editRecurrence As Boolean, isNew As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a></td>
      <td><span class="parametername">schedule</span></td>
      <td><p>The owning <a class="xref" href="C1.Win.Schedule.C1Schedule.html">C1Schedule</a> component.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Appointment</span></td>
      <td><span class="parametername">appointment</span></td>
      <td><p>The <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">editRecurrence</span></td>
      <td><p>Determines whether the <a class="xref" href="C1.Win.Schedule.Forms.RecurrenceForm.html">RecurrenceForm</a> dialog should be shown after the form opening.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isNew</span></td>
      <td><p>Determines whether the <a class="xref" href="C1.Win.Schedule.Forms.AppointmentForm.Appointment.html#C1_Win_Schedule_Forms_AppointmentForm_Appointment">Appointment</a> object is the new one and hasn't been added to AppointmentStorage yet.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
