• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.DateRangeEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.DateRangeEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DateRangeEventArgs类的具体用法?C# DateRangeEventArgs怎么用?C# DateRangeEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DateRangeEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了DateRangeEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: FechaHastaCalendario_DateSelected

        private void FechaHastaCalendario_DateSelected(object sender, DateRangeEventArgs e)
        {
            DateTime hasta = FechaHastaCalendario.SelectionStart;
            string fechaHastaStr = hasta.Date.ToShortDateString();

            FechaHasta.Text = fechaHastaStr;

            FechaHastaCalendario.Visible = false;
        }
开发者ID:UTN-GestionDePatos,项目名称:drunken-octo-bear,代码行数:9,代码来源:HistorialCupones.cs


示例17: calender_DateSelected

        private void calender_DateSelected(object sender, DateRangeEventArgs e)
        {
            if (calender_mode == "from")
                from_txt.Text = e.Start.Date.ToShortDateString();
            if (calender_mode == "to")
                to_txt.Text = e.Start.Date.ToShortDateString();

            calender.Visible = false;
        }
开发者ID:Aneetha,项目名称:Test,代码行数:9,代码来源:theater_add_more.cs


示例18: monthCalendar1_DateChanged

 private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
 {
     if ( txtDateDebut.Text == "" )
     {
         txtDateDebut.Text = monthCalendar1.SelectionStart.ToShortDateString();
     }
     else
     {
         txtDateFin.Text = monthCalendar1.SelectionStart.ToShortDateString();
     }
 }
开发者ID:joanny,项目名称:C-sharp_apps,代码行数:11,代码来源:Frm_NouvelTaches.cs


示例19: CALENDAR_DateChanged

        private void CALENDAR_DateChanged(object sender, DateRangeEventArgs e)
        {
            try
            {
                DateTime currentselect = this.CALENDAR.SelectionEnd.Date;
                this.DisplayGrid(currentselect);
                this.fillStats(currentselect);
            }
            catch (Exception ex)
            {

            }
        }
开发者ID:udayreddy,项目名称:EXPENSE-MONITOR,代码行数:13,代码来源:EM.cs


示例20: Calendario_DateChanged

        private void Calendario_DateChanged(object sender, DateRangeEventArgs e)
        {
            List<Compromissos> compromissos = Compromissos.Listar(Calendario.SelectionRange.Start);
            CompromissosDoDia.Items.Clear();

            foreach (Compromissos lista in compromissos)
            {
                ListViewItem item = new ListViewItem();
                item.Text = lista.Id.ToString();
                item.SubItems.Add(lista.Hora.ToString());
                item.SubItems.Add(lista.Descricao);
                CompromissosDoDia.Items.Add(item);
            }
        }
开发者ID:GlerystonMatos,项目名称:Agenda_Com_Month_Calendar,代码行数:14,代码来源:frmAgenda.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.DateTimePicker类代码示例发布时间:2022-05-26
下一篇:
C# Forms.DataObject类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap