/// <summary> /// 日期选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void calendar_DaySelected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { if (calendar.SelectedDates.Count > 0) { searchByDay(calendar.SelectedDates[0]); } }
private void monthCalendarMacroSchedule_DaySelected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { labelDetails.Visible = true; labelDetailsII.Visible = false; buttonMacroChangeTo.Visible = true; comboBoxMacroSessionChange.Visible = true; ShowDetails(); }
void monthCalendar1_DaySelected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { Pabo.Calendar.SelectedDatesCollection dates = this.monthCalendar1.SelectedDates; if (manual_dataset == null) { manual_dataset = new BingoGameEvent.GameEventDataSet(StaticDsnConnection.dsn); DsnSQLUtil.MatchCreate(StaticDsnConnection.dsn, manual_dataset); } if (dates.Count > 0) { { List <DateTime> selectedDates = new List <DateTime>(); for (int idx = 0; idx < dates.Count; idx++) { selectedDates.Add(dates[idx]); } the_day = dates[0]; GetSessions(the_day, selectedDates); //sessions = BingoGameList.GetPlayedSessions( dates[ 0 ] ); manual_dataset.FillToday(the_day, selectedDates); } } dataGridView1.DataSource = manual_dataset.games; dataGridView1.Columns["bingo_game_id"].Visible = false; dataGridView1.Columns["bingoday"].Visible = true; dataGridView1.Columns["bingoday"].HeaderText = "Date"; dataGridView1.Columns["session"].HeaderText = "Session"; dataGridView1.Columns["session"].Width = 150; dataGridView1.Columns["game"].HeaderText = "Game"; dataGridView1.Columns["game"].Width = 150; dataGridView1.Columns["session_id"].Visible = false; dataGridView1.Columns["game_id"].Visible = false; dataGridView1.AllowUserToAddRows = false; dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dataGridView1.RowHeadersVisible = false; dataGridView1.ScrollBars = ScrollBars.Vertical; dataGridView1.EditMode = DataGridViewEditMode.EditProgrammatically; int width = dataGridView1.Width; width -= dataGridView1.Columns["bingoday"].Width; width -= dataGridView1.Columns["session"].Width; width -= dataGridView1.Columns["game"].Width; width -= dataGridView1.Columns["ballset"].Width; width -= dataGridView1.Columns["closed_at"].Width; dataGridView1.Columns["created"].Width = width; dataGridView1.Columns["created"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; return; }
void monthCalendar1_DaySelected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { Pabo.Calendar.SelectedDatesCollection dates = this.monthCalendar1.SelectedDates; sessions = BingoGameList.GetPlayedSessions(dates[0]); listBoxSessions.Items.Clear(); listBoxSessions.Items.Add("All"); foreach (int session in sessions) { listBoxSessions.Items.Add(session); } listBoxSessions.SelectedIndex = 0; //listBoxSessions.DataSource = sessions; //.SelectionMode = SelectionMode.MultiSimple; //throw new Exception( "The method or operation is not implemented." ); }
private void monthCalendar1_DayDeselected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { DateTime date = Convert.ToDateTime(e.Days[0]); DataRow session_macro = ControlList.schedule.session_macro_schedule.GetMacroScheduleRow(date); if (session_macro == null) { MessageBox.Show("No sessions on that day."); } this.sessions.Rows.Clear(); DataRow[] sessions = session_macro.GetChildRows("session_macro_has_session"); foreach (DataRow session_macro_row in sessions) { DataRow session = session_macro_row.GetParentRow("session_in_session_macro"); DataRow newrow = this.sessions.AddClonedRow(session, true); newrow["original_row"] = session_macro_row; } this.sessions.AcceptChanges(); //GetSessions(); }
private void calendario_DaySelected(object sender, Pabo.Calendar.DaySelectedEventArgs e) { }