当前位置: 首页>>代码示例>>C#>>正文


C# Forms.DateRangeEventArgs类代码示例

本文整理汇总了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());
     }
 }
开发者ID:wow4all,项目名称:evemu_server,代码行数:7,代码来源:DateSelectWindow.cs

示例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);
 }
开发者ID:xxjeng,项目名称:nuxleus,代码行数:7,代码来源:MonthAtAGlance.cs

示例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;
 }
开发者ID:Stambezzi,项目名称:Coach-Program,代码行数:7,代码来源:Update_User.cs

示例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();
 }
开发者ID:iraychen,项目名称:OfficeRibbon,代码行数:7,代码来源:HostForm.cs

示例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;
 }
开发者ID:Julian9803,项目名称:CopraSalud,代码行数:7,代码来源:citasUsuario.cs

示例6: monthCalendar1_DateSelected

        private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
        {
            this.DateTime = e.Start;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
开发者ID:renyh1013,项目名称:dp2,代码行数:7,代码来源:GetDateDlg.cs

示例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();
            }
        }
开发者ID:Infinity0106,项目名称:TechnicalSchool,代码行数:27,代码来源:FrmCal.cs

示例8: cal_DateChanged

 private void cal_DateChanged(object sender, DateRangeEventArgs e)
 {
     DateTime current = cal.SelectionStart;
     displayEntryFor(current);
     existingEntriesThisMonth(current);
     journalentry.Focus();
     journalentry.Select();
 }
开发者ID:maciakl,项目名称:Plain-Text-Journal,代码行数:8,代码来源:Journal.cs

示例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();
 }
开发者ID:nico06530,项目名称:projet_ecole_localcar_user,代码行数:9,代码来源:frmChoixDate.cs

示例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;
        }
开发者ID:hanlonal,项目名称:CSE4982013,代码行数:8,代码来源:NewClientForm.cs

示例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();
 }
开发者ID:Chidiemeh184,项目名称:CSCC_classes,代码行数:8,代码来源:Form1.cs

示例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;
        }
开发者ID:UTN-GestionDePatos,项目名称:drunken-octo-bear,代码行数:8,代码来源:ArmarCupon.cs

示例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;
        }
开发者ID:UTN-GestionDePatos,项目名称:drunken-octo-bear,代码行数:9,代码来源:RegistroUsuario.cs

示例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();
        }
开发者ID:andrepontesmelo,项目名称:imjoias,代码行数:9,代码来源:JanelaEscolhaDatasPagamento.cs

示例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;
        }
开发者ID:UTN-GestionDePatos,项目名称:drunken-octo-bear,代码行数:9,代码来源:HistorialCupones.cs


注:本文中的System.Windows.Forms.DateRangeEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。