private void InputTestDate_Leave(object sender, EventArgs e) { if (InputMonthCalendar.Visible) { InputMonthCalendar.Hide(); } }
private void InputMonthCalendar_Leave(object sender, EventArgs e) { //System.Console.WriteLine("leave calender"); if (InputMonthCalendar.Visible) { InputMonthCalendar.Hide(); } }
void SetCalenderDateAsTestDate() { //Set date selected in calender to InputTestDate Control, set focus back to text box, hide calender InputTestDate.Text = InputMonthCalendar.SelectionEnd.Date.ToString("dddd, MMM dd, yyyy"); InputTestDate.Focus(); InputTestDate.Select(0, 0); if (InputMonthCalendar.Visible) { InputMonthCalendar.Hide(); } }
private void InputDlg_Click(object sender, EventArgs e) { //System.Console.WriteLine($" OutputRecommendedLowVoltStartAt60Hz? = {mMotorTestData.OutputRecommendedLowVoltStartAt60Hz-2??999}"); if (InputMonthCalendar.Visible) { InputMonthCalendar.Hide(); } ForceRefreshBindingDataToControls(); //System.Console.WriteLine(InputChooseLoadData.SelectedItem.ToString()); //System.Console.WriteLine(InputChooseLoadData.SelectedItem.ToString().Substring(4, InputChooseLoadData.SelectedItem.ToString().IndexOf(" --- ") - (" --- ").Length + 1)); }