public UCStatTimeFrame() { InitializeComponent(); ClearMonthSelect(); ClearDaySelect(); Init(); TimeFrame = new TimeFrameClass(); }
private void cbDayEnd_SelectedIndexChanged(object sender, EventArgs e) { if (TimeFrame == null) { TimeFrame = new TimeFrameClass(); } TimeFrame.EndDay = cbDayEnd.Text == "不区分" ? -1 : int.Parse(cbDayEnd.Text.Replace("日", "")); if (ArgChanged != null) { ArgChanged(); } }
private void cbMonthBegin_SelectedIndexChanged(object sender, EventArgs e) { if (TimeFrame == null) { TimeFrame = new TimeFrameClass(); } TimeFrame.BeginMonth = cbMonthBegin.Text == "不区分" ? -1 : int.Parse(cbMonthBegin.Text.Replace("月", "")); if (ArgChanged != null) { ArgChanged(); } }