Inheritance: System.EventArgs
Esempio n. 1
0
 private void monthCalendar_DateSelected(object sender, DateRangeEventArgs e)
 {
     string insertText;
     dateSelected = monthCalendar.SelectionRange.Start;
     insertText = dateSelected.Day + "." + dateSelected.Month + "." + dateSelected.Year;
     txtBoxDate.Text = insertText;
 }
Esempio n. 2
0
 private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
 {
     if (m_numClicks >= 2)
     {
         btnOk_Click(this, new EventArgs());
     }
 }
Esempio n. 3
0
        private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
        {
            this.DateTime = e.Start;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
Esempio n. 4
0
 private void monthCalendar2_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     this.m_IsSelect = true;
     m_dtSelectDate  = e.Start.Date;
     dHandle();
     this.Hide();
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 /// <summary>
 /// Raises the <see cref="DateSelected"/> event.
 /// </summary>
 /// <param name="drevent">A <see cref="System.Windows.Forms.DateRangeEventArgs"/> that contains the event data.</param>
 protected internal void OnDateSelected(System.Windows.Forms.DateRangeEventArgs drevent)
 {
     if (DateSelected != null)
     {
         this.DateSelected(this, drevent);
     }
 }
Esempio n. 8
0
 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();
 }
Esempio n. 9
0
        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();
            }
        }
Esempio n. 10
0
 private void eventCalendar_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     if (DateClicked != null)
     {
         DateClicked(this, EventArgs.Empty);
     }
 }
 private void calendario_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     if (datas.Contains(e.Start))
     {
         MessageBox.Show("Feriado");
     }
 }
 // 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();
 }
Esempio n. 13
0
 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();
 }
Esempio n. 14
0
        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;
        }
        private void FechaPublicacion_DateSelected(object sender, DateRangeEventArgs e)
        {
            DateTime fchPublicacion = FechaPublicacion.SelectionStart;
            String fechaP = fchPublicacion.Date.ToShortDateString();

            Publicacion.Text = fechaP;
            FechaPublicacion.Visible = false;
        }
Esempio n. 16
0
 private void cal_DateChanged(object sender, DateRangeEventArgs e)
 {
     DateTime current = cal.SelectionStart;
     displayEntryFor(current);
     existingEntriesThisMonth(current);
     journalentry.Focus();
     journalentry.Select();
 }
Esempio n. 17
0
 private void m_mcDate_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     if (m_bActivated)
     {
         OnCallSalvaConfiguracao();
         OnCallMessagesRefresh();
     }
 }
        private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
        {
            //if (!datas.Contains(monthCalendar1.SelectionStart))
            //    datas.Add(monthCalendar1.SelectionStart);

            //monthCalendar1.SelectionEnd = monthCalendar1.SelectionStart;

            //RefazLista();
        }
        private void Fecha_DateSelected(object sender, DateRangeEventArgs e)
        {
            DateTime date = Fecha.SelectionStart;
            string fechaStr = date.Date.ToShortDateString();

            FchNacimientoCliente.Text = fechaStr;

            Fecha.Visible = false;
        }
Esempio n. 20
0
        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;
        }
        private void FechaHastaCalendario_DateSelected(object sender, DateRangeEventArgs e)
        {
            DateTime hasta = FechaHastaCalendario.SelectionStart;
            string fechaHastaStr = hasta.Date.ToShortDateString();

            FechaHasta.Text = fechaHastaStr;

            FechaHastaCalendario.Visible = false;
        }
        private void FechaDesdeCalendario_DateSelected(object sender, DateRangeEventArgs e)
        {
            DateTime desde = FechaDesdeCalendario.SelectionStart;
            string fechaDesdeStr = desde.Date.ToShortDateString();

            FechaDesde.Text = fechaDesdeStr;

            FechaDesdeCalendario.Visible = false;
        }
Esempio n. 23
0
        private void monthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            // Show the start and end dates in the text box.
            TextBox textBox1 = new TextBox();

            textBox1.Text = "Date Changed: Start =  " +
                            e.Start.ToShortDateString() + " : End = " + e.End.ToShortDateString();
            this.Controls.Add(textBox1);
        }
Esempio n. 24
0
        //</Snippet6>

        private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            label4.Text = "Enter description for " + monthCalendar1.SelectionStart.ToShortDateString();
            if (monthCalendar1.SelectionEnd != monthCalendar1.SelectionStart)
            {
                label4.Text += " to " + monthCalendar1.SelectionEnd.ToShortDateString();
            }

            textBox2.Enabled = true;
        }
Esempio n. 25
0
 private void MonthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     try
     {
         RefreshRange(e.Start);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 26
0
 private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
 {
     if ( txtDateDebut.Text == "" )
     {
         txtDateDebut.Text = monthCalendar1.SelectionStart.ToShortDateString();
     }
     else
     {
         txtDateFin.Text = monthCalendar1.SelectionStart.ToShortDateString();
     }
 }
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     System.DateTime dt = monthCalendar1.SelectionEnd;
     try
     {
         dRet         = new System.DateTime(dt.Year, dt.Month, dt.Day, (int)numHour.Value, (int)numMinute.Value, (int)numSec.Value, 0);
         lblDate.Text = dRet.ToString("u");
     }
     catch
     {
     }
 }
Esempio n. 28
0
        /*************************************************************************************
        *	module: frmAutoMan.cs - monthCalendar1_DateSelected
        *
        *	author: Tim Ragain
        *	date: Jan 22, 2002
        *
        *	Purpose: To set the selection dates for one week after the user selects an ending
        *	date.  Also resets the title bar of the form for the new dates.
        *************************************************************************************/
        private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            System.DateTime dDate = new System.DateTime(monthCalendar1.SelectionStart.Year, monthCalendar1.SelectionStart.Month,
                                                        monthCalendar1.SelectionStart.Day);

            monthCalendar1.SelectionStart = dDate.AddDays(-6);
            monthCalendar1.SelectionEnd   = dDate.Date;
            this.Text = "Executive Summary Weekly Report  " + monthCalendar1.SelectionStart.ToShortDateString() + " - " +
                        monthCalendar1.SelectionEnd.ToShortDateString();

            tabPage2.Refresh();
        }
    private void monthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
    {
        // show start & end dates in the text box
        Console.WriteLine("**********");
        Console.WriteLine(e.Start.ToShortDateString().Replace("-", ""));

        consoleDataTable(e.Start.ToShortDateString().Replace("-", ""));

        Console.WriteLine("**********");

        textBox1.Text = "Simple Mail Transfer Protocol Report for the date: " + e.Start.ToShortDateString();
        InitializeDataGridView(e.Start.ToShortDateString().Replace("-", ""));
    }
Esempio n. 30
0
        private void CALENDAR_DateChanged(object sender, DateRangeEventArgs e)
        {
            try
            {
                DateTime currentselect = this.CALENDAR.SelectionEnd.Date;
                this.DisplayGrid(currentselect);
                this.fillStats(currentselect);
            }
            catch (Exception ex)
            {

            }
        }
Esempio n. 31
0
        private void calendarDate_DateSelected(object sender, DateRangeEventArgs e)
        {
            try
            {

                date = e.Start.Date;
                time = TimeSpan.Parse(timeField.Text);

                rTime = date.Add(time);

                resultingTime.Text = rTime.ToString() + " -- " + countTotalTime(rTime).ToString();
            }
            catch { }
        }
        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);
            }
        }
Esempio n. 33
0
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     if (obeyevnt == false)
     {
         return;
     }
     if (e != null)
     {
         this.obeyevnt = false;
         this.selectedDateComboBox.Text = e.Start.ToString("dd-MMM-yyyy HH:mm:ss");
         this.obeyevnt = true;
     }
     System.Windows.Forms.Application.DoEvents();
     this.OKButton.PerformClick();
 }
Esempio n. 34
0
        /*
         * Generar Eventos al elegir fecha en el calendario.
         * */
        private void MC_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {   /*
             * Mostrar fecha elegida por usuario a traves de un label, en frmCalendario (dd/mm/yyyy)
             * */
            String strdt = (e.Start.ToString("yyyy-MM-dd"));

            lbgral.Text  = introLabel;
            lbgral.Text += CambiarFormato(strdt);
            if (blPERiOdO == 'F')
            {
                dtfinal = (strdt);  // para mysql.
                return;
            }
            dtinicio = (strdt);     // para mysql.
        }
Esempio n. 35
0
        private void Calendario_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            // fecha de la factura
            if (Calendario.Tag == "1")
            {
                lblFecha.Text = Calendario.SelectionStart;

                //Fecha de vencimiento del CAE
            }
            else if (Calendario.Tag == "2")
            {
                lblFechVtoCAE.Text = Calendario.SelectionStart;
            }

            Calendario.Visible = false;
        }
Esempio n. 36
0
 private void monthCalendar_DateSelected(object sender, DateRangeEventArgs e)
 {
     int hour = 0;
     int minute = 0;
     int second = 0;
     int.TryParse(txtHour.Text, out hour);
     int.TryParse(txtMinute.Text, out minute);
     int.TryParse(txtSecond.Text, out second);
     dateTimeValue = new DateTime(monthCalendar.SelectionStart.Year,
         monthCalendar.SelectionStart.Month,
         monthCalendar.SelectionStart.Day,
         hour,
         minute,
         second);
     DateRangeEventArgs de = new DateRangeEventArgs(dateTimeValue, dateTimeValue);
     OnDateSelected(sender, de);
 }
        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {
            if (currentControl == uc_shedule_profesional_timeline1)
            {
                if (gridView2.RowCount == 0)
                    return;
                if (uc_shedule_profesional_timeline1.SelectedProfesionalBE == null)
                    uc_shedule_profesional_timeline1.SelectedProfesionalBE = ((Profesional_FullViewBE)gridView2.GetRow(0));

                uc_shedule_profesional_timeline1.SetDateChanged(e.Start);
            }
            if (currentControl == uc_AllShiftGrid)
            {
                uc_AllShiftGrid.SetDateChanged(e.Start);
            }

        }
Esempio n. 38
0
        private void monthCalendar1_SelectionChanged(object sender, DateRangeEventArgs e)
        {
            DateTime dateStart = monthCalendar1.TodayDate;
            DateTime dateEnd = monthCalendar1.SelectionRange.Start.Date;

            if (dateStart < dateEnd) {

                //set number of rental days
                rentalDays = dateEnd.Subtract(dateStart).TotalDays;
                //MessageBox.Show("The number of days between start and end are: " + rentalDays);
            }
            else {//error, cannot set date before todays date
                MessageBox.Show("Cannot set return date before todays date. ", "Error!");
                //allowing a user to return the car on the same day they rented it would result
                //in a price of 0 dollars, because they did not rent it a full day, so we are
                //not allowing it.
            }
        }
 private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
 {
     dgvDailyStatement.Rows.Clear();
     DateTime selectedDate = e.Start;
     IList<DailyBalanceTime> dailyBalanceTimeList = DailyBalanceService.GetInstance().GetDailyBalanceTime(selectedDate);
     if (dailyBalanceTimeList != null && dailyBalanceTimeList.Count > 0)
     {
         for (int i = 0; i < dailyBalanceTimeList.Count; i++)
         {
             int index = dgvDailyStatement.Rows.Add(new DataGridViewRow());
             dgvDailyStatement.Rows[index].Cells["colOrder"].Value = i + 1;
             dgvDailyStatement.Rows[index].Cells["colBeginTime"].Value = dailyBalanceTimeList[i].MinTime > DateTime.MinValue ? dailyBalanceTimeList[i].MinTime.ToString("yyyy-MM-dd") : "";
             dgvDailyStatement.Rows[index].Cells["colEndTime"].Value = dailyBalanceTimeList[i].MaxTime > DateTime.MinValue ? dailyBalanceTimeList[i].MaxTime.ToString("yyyy-MM-dd") : "";
             dgvDailyStatement.Rows[index].Cells["colDailyStatementNo"].Value = dailyBalanceTimeList[i].DailyStatementNo;
             dgvDailyStatement.Rows[index].Selected = false;
         }
     }
 }
    private void dtpStartOfTrainingPlan_DateChanged(object sender, DateRangeEventArgs e)
    {
      if (!_updateDateRange)
      {
        return;
      }

      _updateDateRange = false;

      var diff = e.Start.DayOfWeek - DayOfWeek.Sunday;
      if (diff < 0)
      {
        diff += 7;
      }
      dtpStartOfTrainingPlan.SelectionStart = e.Start.AddDays(-1 * diff).Date;
      dtpStartOfTrainingPlan.SelectionEnd = dtpStartOfTrainingPlan.SelectionStart.AddDays(7);

      _updateDateRange = true;
    }
Esempio n. 41
0
        void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            //将用户在MonthCalendar上点击的坐标转换程用户区坐标,并根据坐标获得点击类型
            string s = System.Convert.ToString(monthCalendar1.HitTest(this.PointToClient(MonthCalendar.MousePosition)).HitArea);

            string _year, _month, _day, _date;

            //如果用户点中了日期则对文本框进行赋值并退出
            if (s.Equals("Nowhere"))
            {
                //以下记录选中的日期的各个值
                _year  = System.Convert.ToString(e.Start.Year);
                _month = System.Convert.ToString(e.Start.Month);
                _day   = System.Convert.ToString(e.Start.Day);
                _date  = _year + "-" + _month + "-" + _day;

                this.tbxOperationDate.Text = _date;
                monthCalendar1.Hide();
            }
        }
Esempio n. 42
0
        private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
        {
            try
            {
                if (textbox != null)
                {
                    textbox.Delete();
                }
                PowerPoint.Slide slide = Globals.ThisAddIn.Application.ActivePresentation.Slides[1];
                textbox = slide.Shapes.AddTextbox(Office.MsoTextOrientation.msoTextOrientationHorizontal, 50, 100, 600, 50);
                textbox.TextFrame.TextRange.Text = e.Start.ToLongDateString();
                textbox.TextFrame.TextRange.Font.Size = 48;
                textbox.TextFrame.TextRange.Font.Color.RGB = Color.DarkViolet.ToArgb();
            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.ToString());
            }
        }
Esempio n. 43
0
        private void calendrier_DateChanged(object sender, DateRangeEventArgs e)
        {
            commande = string.Format("SELECT * FROM PROJET_IHM_EPISODE WHERE DATEDIFFUSION=TO_DATE('{0}', 'dd/MM/yyyy')", calendrier.SelectionStart.ToString("d"));
            ds = bdd.Select(commande);

            string message = string.Empty;

            foreach(DataRow r in ds.Tables["Data"].Rows)
            {
                message += string.Format("{0} - Saison {1} - Épisode {2} : {3}", r["NOMSERIE"], r["NUMEROSAISON"], r["NUMEPISODE"], r["NOMEPISODE"]);
            }

            if (message == string.Empty)
                message = "Pas d'épisode diffusés à cette date.";

            string caption = calendrier.SelectionStart.ToString("d");
            MessageBoxButtons buttons = MessageBoxButtons.OK;

            MessageBox.Show(message, caption, buttons);
        }
Esempio n. 44
0
        private void DateSelect_DateSelected(object sender, DateRangeEventArgs e)
        {
            MonthCalendar mc = sender as MonthCalendar;
            editEventButton.Enabled = false;
            UserList.Items.Clear();
            foreach (Shows s in UserForm.showList)
            {
                if (s.Date.Date == mc.SelectionStart)
                {
                    UserList.Items.Add(s);
                }

            }
            UserLabel.Text = "Events";
            editEventButton.Text = "Edit Event";
            addEventButtons.Text = "Add Event(s)";
            ViewUserButton.Text = "View All Users";
            UserList.DisplayMember = "Name";
            UserList.Sorted = true;
        }
Esempio n. 45
0
        private void monthCalendar_FechaDeFacturaFin_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            textBox_FechaFin.Text = e.Start.ToShortDateString();

            try
            {
                this.validarYCargar();
            }
            catch (FechaInvalidaException error) {
                MessageBox.Show(error.Message, "Error en fecha", MessageBoxButtons.OK, MessageBoxIcon.Error);
                LimpiarDatosVista();
                monthCalendar_FechaDeFacturaFin.Visible = false;
                return;
            }
            catch (CampoVacioException exception)
            {
                MessageBox.Show("Falta completar campo: " + exception.Message);
                monthCalendar_FechaDeFacturaFin.Visible = false;
                return;
            }

            monthCalendar_FechaDeFacturaFin.Visible = false;
        }
Esempio n. 46
0
        private void calen2_DateSelected(object sender, DateRangeEventArgs e)
        {
            string an, me, dia, fee;

            an = calen2.SelectionStart.Year.ToString();
            me = calen2.SelectionStart.Month.ToString("00");
            dia = calen2.SelectionStart.Day.ToString("00");
            fee = an + me + dia;
            di2 = int.Parse(fee);
            textfe2.Text = fee;
              /*  if (di2 - di1 > 7)
            {
                DateTime fechcal = new DateTime(calen2.SelectionStart.Year, calen2.SelectionStart.Month, calen2.SelectionStart.Day);
                ll = fechcal.Ticks - 6048000000000;
                DateTime fechcal2 = new DateTime(ll);
                textfe1.Text = string.Format("{0:yyyy}{0:MM}{0:dd}", fechcal2);
            }*/
               /* else*/ if (di2 - di1 < 0)
            {
                textfe1.Text = textfe2.Text;
            }
            return;
        }
Esempio n. 47
0
        private void calendarControl_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
        {
            this.DayEvents.Items.Clear();

            ArrayList results = new ArrayList(5);

            foreach (EventEntry entry in this.entryList)
            {
                // let's find the entries for that date

                if (entry.Times.Count > 0)
                {
                    foreach (When w in entry.Times)
                    {
                        if (e.Start.Date == w.StartTime.Date ||
                            e.Start.Date == w.EndTime.Date)
                        {
                            results.Add(entry);
                            break;
                        }
                    }
                }
            }

            foreach (EventEntry entry in results)
            {
                ListViewItem item = new ListViewItem(entry.Title.Text);
                item.SubItems.Add(entry.Authors[0].Name);
                if (entry.Times.Count > 0)
                {
                    item.SubItems.Add(entry.Times[0].StartTime.TimeOfDay.ToString());
                    item.SubItems.Add(entry.Times[0].EndTime.TimeOfDay.ToString());
                }

                this.DayEvents.Items.Add(item);
            }
        }
Esempio n. 48
0
 private void monthCalendar_FechaDeNacimiento_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     textBox_FechaDeNacimiento.Text          = e.Start.ToShortDateString();
     monthCalendar_FechaDeNacimiento.Visible = false;
 }
Esempio n. 49
0
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     // Show the start and end dates in the text box.
     this.label3.Text = e.Start.ToShortDateString();
     datetask         = e.Start;
 }
Esempio n. 50
0
 private void MonthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     //Reset the display date
     ReloadWeek(e.Start);
 }
Esempio n. 51
0
 private void dtDateDay_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     DayDataBind();
 }
Esempio n. 52
0
 //-----------从日历控件中选择日期信息------------
 private void calen1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     cmb1.Text = calen1.SelectionEnd.ToString();
 }
Esempio n. 53
0
 private void monthCalendar_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     notesTextBox.Clear();
     dateSelected(e.Start);
 }
Esempio n. 54
0
 private void monthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     // Show the start and end dates in the text box.
 }
 private void OnDateChanged(object sender, SWF.DateRangeEventArgs e)
 {
     RaiseAutomationPropertyChangedEvent();
 }
Esempio n. 56
0
 private void monthCalendar1_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     RetrieveRecordFromDB();
     ScheduleHeader();
     LoadScheduleDetail();
 }
Esempio n. 57
0
 private void datePicker_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     dateField.Text = datePicker.SelectionStart.ToString(usFormat);
 }
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     getSelection();
 }
Esempio n. 59
0
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     // Show the start and end dates in the text box.
     this.textBox1.Text = "Date Selected: Start = " +
                          e.Start.ToShortDateString() + " : End = " + e.End.ToShortDateString();
 }
Esempio n. 60
0
 private void monthCalendar1_DateSelected(object sender, System.Windows.Forms.DateRangeEventArgs e)
 {
     main.txtDate.Text = monthCalendar1.SelectionStart.ToShortDateString();
     //main.txtDate.Focus();
     this.Dispose();
 }