Esempio n. 1
0
 private void BtnLoadArea_Click(object sender, EventArgs e)
 {
     if (CMX_Area.SelectedItem == null)
     {
         LBL_Area.ForeColor = Color.Red;
     }
     else
     {
         LBL_Area.ForeColor = Color.Black;
         this.vIW_GetPeopleDataTableAdapter.FillByArea(this.goodShepherdDataSet.VIW_GetPeopleData, Convert.ToInt32(CMX_Area.Value));
         ReportAdress.SetDataSource(goodShepherdDataSet);
         ReportAdress.SetParameterValue("Adress", "بمنطقة : " + CMX_Area.Text);
         CR.ReportSource = ReportAdress;
     }
 }
Esempio n. 2
0
 //--------------------------------------------------------------
 private void BtnLoadCity_Click(object sender, EventArgs e)
 {
     if (ComboCIty.SelectedItem == null)
     {
         LblCity.ForeColor = Color.Red;
     }
     else
     {
         LblCity.ForeColor = Color.Black;
         this.vIW_GetPeopleDataTableAdapter.FillByCity(this.goodShepherdDataSet.VIW_GetPeopleData, Convert.ToInt32(ComboCIty.Value));
         ReportAdress.SetDataSource(goodShepherdDataSet);
         ReportAdress.SetParameterValue("Adress", "بمحافظة : " + ComboCIty.Text);
         CR.ReportSource = ReportAdress;
     }
 }