# C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*">NewAppointmentDialog Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_C1_WPF_Schedule_VisualInterval_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog(C1.WPF.Schedule.VisualInterval)">NewAppointmentDialog(VisualInterval)</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog(VisualInterval forInterval)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog(forInterval As VisualInterval)</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.WPF.Schedule.VisualInterval.html">VisualInterval</a></td>
      <td><span class="parametername">forInterval</span></td>
      <td><pre><code>&lt;xref href=&quot;C1.WPF.Schedule.VisualInterval&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; that determines an initial period of time for
</code></pre>
<p>a creating <span class="xref">C1.Schedule.Appointment</span>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_C1_WPF_Schedule_VisualInterval__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This methods implements the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialogCommand.html">NewAppointmentDialogCommand</a> command.</p>
</div>


<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog">NewAppointmentDialog()</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span> object.
Edit Appointment dialog is initialized according to the
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTimeInterval.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTimeInterval">SelectedDateTimeInterval</a> property value if it is not null;
or according to the current date and time and
the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualIntervalScale.html#C1_WPF_Schedule_C1Scheduler_VisualIntervalScale">VisualIntervalScale</a> property value otherwise.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog()</code></pre>
</div>
<h5 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This methods implements the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialogCommand.html">NewAppointmentDialogCommand</a> command.</p>
</div>


<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime_System_Nullable_System_Boolean__" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog(System.DateTime,System.DateTime,System.Nullable{System.Boolean})">NewAppointmentDialog(DateTime, DateTime, bool?)</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span> object with the specified parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog(DateTime start, DateTime end, bool? allDayEvent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog(start As Date, [end] As Date, allDayEvent 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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start value.</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 value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</td>
      <td><span class="parametername">allDayEvent</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying
whether appointment is all-day event.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime_System_Nullable_System_Boolean__C1_Schedule_BaseObject_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog(System.DateTime,System.DateTime,System.Nullable{System.Boolean},C1.Schedule.BaseObject)">NewAppointmentDialog(DateTime, DateTime, bool?, BaseObject)</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span> object with the specified parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog(DateTime start, DateTime end, bool? allDayEvent, BaseObject groupOwner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog(start As Date, [end] As Date, allDayEvent As Boolean?, groupOwner As BaseObject)</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start value.</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 value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</td>
      <td><span class="parametername">allDayEvent</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying
whether appointment is all-day event.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">BaseObject</span></td>
      <td><span class="parametername">groupOwner</span></td>
      <td><p>The object determining SchedulerGroupItemen for which appointment should be created.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog(System.DateTime,System.DateTime)">NewAppointmentDialog(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span> object with the specified start and end values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog(DateTime start, DateTime end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog(start As Date, [end] As Date)</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start value.</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 value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The value of the <span class="xref">C1.Schedule.Appointment.AllDayEvent</span> property
is determined according the start and end values.</p>
</div>


<a id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime_C1_Schedule_BaseObject_" data-uid="C1.WPF.Schedule.C1Scheduler.NewAppointmentDialog(System.DateTime,System.DateTime,C1.Schedule.BaseObject)">NewAppointmentDialog(DateTime, DateTime, BaseObject)</h4>
<div class="markdown level1 summary"><p>Shows the Edit Appointment dialog for the creation of a new
<span class="xref">C1.Schedule.Appointment</span> object with the specified start and end values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void NewAppointmentDialog(DateTime start, DateTime end, BaseObject groupOwner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub NewAppointmentDialog(start As Date, [end] As Date, groupOwner As BaseObject)</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="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start value.</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 value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">BaseObject</span></td>
      <td><span class="parametername">groupOwner</span></td>
      <td><p>The object determining SchedulerGroupItemen for which appointment should be created.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_NewAppointmentDialog_System_DateTime_System_DateTime_C1_Schedule_BaseObject__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The value of the <span class="xref">C1.Schedule.Appointment.AllDayEvent</span> property
is determined according the start and end values.</p>
</div>
</div>
