Пример #1
0
        private void GetSurveyDetail(long id)
        {
            TResponse objTResponse = new SurveyDetailBusiness().GetByID(id);

            if (objTResponse.ResponsePacket != null)
            {
                SurveyModel objSurveyModel = objTResponse.ResponsePacket as SurveyModel;

                FillSurveyDetail(objSurveyModel);
            }
        }
Пример #2
0
        private void GetSurveyList(long id)
        {
            dgSurvey.ItemsSource = null;

            TResponse objTResponse = new SurveyDetailBusiness().GetAll();

            if (objTResponse.ResponsePacket != null)
            {
                cmstripRow.Visibility = Visibility.Visible;
                List <SurveyModel> lstSurvey = objTResponse.ResponsePacket as List <SurveyModel>;

                dgSurvey.ItemsSource = lstSurvey.ToList();
            }
            else
            {
                // cmstripRow.Visibility = Visibility.Collapsed;
                // MessageBox.Show("Sorry! You Have no more projects.");
            }
        }