private void gridView1_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { ////Do not perform any default action //e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; ////Show the message with the error text specified //MessageBox.Show(e.ErrorText); }
private void textEditTenLop_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { string maKhoi = CboUtil.GetValueItem(comboBoxEditKhoi); e.ErrorText = "Tên lớp không hợp lệ. Tên lớp có dạng " + maKhoi + "[A-H][0-9][0-9]. VD: " + maKhoi + "B02"; }
protected internal virtual void OnEdtEndTimeInvalidValue(object sender, InvalidValueExceptionEventArgs e) { //if (!AppointmentFormControllerBase.ValidateInterval(edtStartDate.DateTime.Date, edtStartTime.Time.TimeOfDay, edtEndDate.DateTime.Date, edtEndTime.Time.TimeOfDay)) // e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_InvalidEndDate); //else // e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_DateOutsideLimitInterval); }
private void textPhone_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { //if (textPhoneCheck == 1) //{ e.ErrorText = "Chưa nhập số điện thoại"; } //else if (textPhoneCheck == 2) //{ // e.ErrorText = "Độ dài sđt không được vượt quá 15 kí tự"; //} }
private void textFullName_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { //if (textFullNameCheck == 1) //{ e.ErrorText = "Chưa nhập tên"; } //else if (textFullNameCheck == 2) //{ // e.ErrorText = "Độ dài tên không được vượt quá 50 kí tự"; //} }
private void gridView1_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; e.WindowCaption = "Input Error"; e.ErrorText = "The value should be ...."; ////// Destroying the editor and discarding the changes made within the edited cell ////gridView1.HideEditor(); }
private void textEditTenLop_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { if (cmbKhoi.SelectedValue == null) { MsgboxUtil.Error("Bạn chưa chọn khối lớp!"); return; } string maKhoi = cmbKhoi.SelectedValue.ToString(); e.ErrorText = "Tên lớp không hợp lệ. Tên lớp có dạng " + maKhoi + "[A-Z][0-9][0-9]. VD: " + maKhoi + "B02"; }
private void gridViewCT_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { GridView view = sender as GridView; if (view == null) { return; } e.ExceptionMode = ExceptionMode.DisplayError; e.WindowCaption = "Thông báo"; e.ErrorText = "Số lô không được rỗng"; // Destroying the editor and discarding the changes made within the edited cell. view.HideEditor(); }
private void gridView_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { //Deleting the text in the combobox will //try to set the cell value to an empty //string, and fail with an invalid cast. //I handle this case and actually set it //to null. if (gridView.FocusedColumn == colCaller) { var str = e.Value as string; //If the value is a non-null but empty string if (str != null && str.Trim().Length == 0) { e.ExceptionMode = ExceptionMode.NoAction; gridView.SetFocusedRowCellValue(colCaller, null); } } }
private void memoNote_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { }
private void lookUpDoctor_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { }
private void dateDateSchedule_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { }
private void gridView1_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; }
private void PersonalInfoTextEdit_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = String.Format("Необходимо от {0} до {1} символов.", (int)ValidLength.minPersonalInfo, (int)ValidLength.maxPersonalInfo); }
private void DriveNameEdit_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = "Invalid drive name specified. It must be composed of 35 or less valid characters. A-Z, 0-9."; }
protected internal virtual void OnEdtStartDateInvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_DateOutsideLimitInterval); }
private void memoExamineReason_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; }
protected internal virtual void cbReminder_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_InvalidReminderTimeBeforeStart); }
protected internal virtual void edtEndTime_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_InvalidEndDate); }
private void txtCandidateName_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; e.ErrorText = "Please provide a value for field candidate name"; }
private void GV_Main_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void selectRoleComboBox_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = "Выберите роль"; }
private void gridView1_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { MessageBox.Show(this, e.ErrorText, "SDT", MessageBoxButtons.OK, MessageBoxIcon.Error); e.ExceptionMode = ExceptionMode.NoAction; }
private void UiGridVistaDetalle_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; }
protected internal virtual void OnCbReminderInvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_InvalidReminderTimeBeforeStart); }
protected override void RaiseInvalidValueException(InvalidValueExceptionEventArgs e) { }
private void DrivePathEdit_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = "Invalid drive path specified. It is not a proper device path."; }
private void XUIDEdit_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = "Invalid online/team XUID specified."; }
private void spinEditDiemDat_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ErrorText = "Điểm nhập không hợp lệ. Điểm có giá trị từ 0 -> 10"; }
public void InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { }
private static void GridView_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { // Suppress displaying the error message box e.ExceptionMode = ExceptionMode.NoAction; }
private void lookupDoctor_InvalidValue(object sender, InvalidValueExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; }
private void View_InvalidValueException(object sender, InvalidValueExceptionEventArgs e) { throw new NotImplementedException(); }