bool valdate() { #region valdate if (String.IsNullOrEmpty(Txt_aname.Text)) { MessageBox.Show("برجاء ادخال البيانات الناقصة "); Txt_aname.Focus(); return(false); } if (String.IsNullOrEmpty(Txt_Ename.Text)) { MessageBox.Show("برجاء ادخال البيانات الناقصة "); Txt_Ename.Focus(); return(false); } if (String.IsNullOrEmpty(txt_RP_id.Text)) { MessageBox.Show("برجاء اختيار لائحة الاسعار "); btn_RP_Search.Focus(); return(false); } if (String.IsNullOrEmpty(txt_ET_id.Text)) { MessageBox.Show("برجاء اختيار نوع الجهة "); btn_EType_Search.Focus(); return(false); } #endregion valdate return(true); }
bool valdate() { #region valdate if (String.IsNullOrEmpty(Txt_aname.Text)) { MessageBox.Show("برجاء ادخال البيانات الناقصة "); Txt_aname.Focus(); return(false); } if (String.IsNullOrEmpty(Txt_ename.Text)) { MessageBox.Show("برجاء ادخال البيانات الناقصة "); Txt_ename.Focus(); return(false); } if (CB_Status.SelectedItem == null) { MessageBox.Show("برجاء اختيار حالة درجة الاقامة "); CB_Status.Focus(); return(false); } if (CB_Col_Type.SelectedItem == null) { MessageBox.Show("برجاء تحديد نوع تجميع الاقامة "); CB_Col_Type.Focus(); return(false); } if (CB_AD_type.SelectedItem == null) { MessageBox.Show("برجاء اختيار نوع الاقامة "); CB_AD_type.Focus(); return(false); } #endregion valdate return(true); }