當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。