本文整理汇总了C#中System.Windows.Forms.DateRangeEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DateRangeEventArgs类的具体用法?C# DateRangeEventArgs怎么用?C# DateRangeEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DateRangeEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了DateRangeEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: monthCalendar1_DateSelected
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
if (m_numClicks >= 2)
{
btnOk_Click(this, new EventArgs());
}
}
示例2: monthCalendar_DateChanged
private void monthCalendar_DateChanged(object sender, DateRangeEventArgs e) {
DateTime changedTo = e.End;
string currText = textBox.Text;
if (dateSubmitEvent(changedTo, currText) &&
EntryChangedHandler != null)
EntryChangedHandler(changedTo, currText);
}
示例3: monthCalendar_DateSelected
private void monthCalendar_DateSelected(object sender, DateRangeEventArgs e)
{
string insertText;
dateSelected = monthCalendar.SelectionRange.Start;
insertText = dateSelected.Day + "." + dateSelected.Month + "." + dateSelected.Year;
txtBoxDate.Text = insertText;
}
示例4: month1_DateSelected
private void month1_DateSelected(object sender, DateRangeEventArgs e)
{
//we must set the text of the host control so it will get copied to the combobox text.
//This is done automatically by the combo box
ribbonHost2.Text = month1.SelectionStart.ToShortDateString();
ribbonHost2.HostCompleted();
}
示例5: monthCalendar1_DateChanged
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
string fecha = mcFecha.SelectionEnd.ToShortDateString();
string sql = "SELECT * FROM Cita WHERE Usuario = " + usuario + " AND Fecha = '" + fecha + "' ";
lista = objCita.historialUsuario(sql);
dgvUsuario.DataSource = lista;
}
示例6: monthCalendar1_DateSelected
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
this.DateTime = e.Start;
this.DialogResult = DialogResult.OK;
this.Close();
}
示例7: monthCalendar1_DateSelected
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
DateTime dia=new DateTime();
dia=Convert.ToDateTime(monthCalendar1.SelectionStart);
if (dia >= new DateTime(2015, 03, 30) && dia <= new DateTime(2015, 04, 11) || dia == new DateTime(2015, 05, 01) || dia == new DateTime(2015, 05, 05) || dia == new DateTime(2015, 05, 15))
{
No();
}
else if (dia >= new DateTime(2015, 05, 26) && dia <= new DateTime(2015, 05, 29) || dia >= new DateTime(2015, 06, 01) && dia <= new DateTime(2015, 06, 05))
{
exam();
}
else if(dia>=new DateTime(2015,05,18)&&dia<=new DateTime(2015,05,22))
{
pro();
}
else if (dia >= new DateTime(2015, 06, 08) && dia <= new DateTime(2015, 07, 29))
{
Vaca();
}
else
{
nada();
}
}
示例8: cal_DateChanged
private void cal_DateChanged(object sender, DateRangeEventArgs e)
{
DateTime current = cal.SelectionStart;
displayEntryFor(current);
existingEntriesThisMonth(current);
journalentry.Focus();
journalentry.Select();
}
示例9: mtCal_DateSelected
// On renvoie la date sélectionnée
private void mtCal_DateSelected(object sender, DateRangeEventArgs e) {
if (acces == "DEB") {
Global.dateSelDebHist = mtCal.SelectionRange.Start;
} else if (acces == "FIN") {
Global.dateSelFinHist = mtCal.SelectionRange.Start;
}
this.Close();
}
示例10: date_DateSelected
private void date_DateSelected(object sender, DateRangeEventArgs e)
{
MonthCalendar cal = (MonthCalendar)sender;
startDateText.Text = e.Start.Date.ToShortDateString();
selectedTime = e.Start.Date;
cal.Visible = false;
}
示例11: monthCalendar1_DateChanged
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
const int DAYS_TO_ADD = 10;
string newDate = "You selected " +
calendar.SelectionStart.ToShortDateString();
messageLabel.Text = newDate + "\nTen days ahead is " +
calendar.SelectionStart.AddDays(DAYS_TO_ADD).ToShortDateString();
}
示例12: FechaPublicacion_DateSelected
private void FechaPublicacion_DateSelected(object sender, DateRangeEventArgs e)
{
DateTime fchPublicacion = FechaPublicacion.SelectionStart;
String fechaP = fchPublicacion.Date.ToShortDateString();
Publicacion.Text = fechaP;
FechaPublicacion.Visible = false;
}
示例13: Fecha_DateSelected
private void Fecha_DateSelected(object sender, DateRangeEventArgs e)
{
DateTime date = Fecha.SelectionStart;
string fechaStr = date.Date.ToShortDateString();
FchNacimientoCliente.Text = fechaStr;
Fecha.Visible = false;
}
示例14: monthCalendar1_DateSelected
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
//if (!datas.Contains(monthCalendar1.SelectionStart))
// datas.Add(monthCalendar1.SelectionStart);
//monthCalendar1.SelectionEnd = monthCalendar1.SelectionStart;
//RefazLista();
}
示例15: FechaDesdeCalendario_DateSelected
private void FechaDesdeCalendario_DateSelected(object sender, DateRangeEventArgs e)
{
DateTime desde = FechaDesdeCalendario.SelectionStart;
string fechaDesdeStr = desde.Date.ToShortDateString();
FechaDesde.Text = fechaDesdeStr;
FechaDesdeCalendario.Visible = false;
}