private void SetRecyclerViewAdapters()
 {
     try
     {
         LayoutManager = new LinearLayoutManager(this);
         MAdapter      = new QuestionAdapter(this)
         {
             QuestionList = new ObservableCollection <QuestionJob>()
         };
         MRecycler.SetLayoutManager(LayoutManager);
         MRecycler.SetAdapter(MAdapter);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
예제 #2
0
 private void SetRecyclerViewAdapters()
 {
     try
     {
         LayoutManager = new LinearLayoutManager(this);
         MAdapter      = new QuestionAdapter(this)
         {
             QuestionList = new ObservableCollection <QuestionJob>()
         };
         MRecycler.SetLayoutManager(LayoutManager);
         MRecycler.SetAdapter(MAdapter);
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
 private void DestroyBasic()
 {
     try
     {
         TxtSave         = null;
         Image           = null;
         TxtAddImg       = null;
         IconTitle       = null;
         TxtTitle        = null;
         IconLocation    = null;
         TxtLocation     = null;
         IconSalary      = null;
         TxtMinimum      = null;
         TxtMaximum      = null;
         IconCurrency    = null;
         TxtCurrency     = null;
         TxtSalaryDate   = null;
         IconJobType     = null;
         TxtJobType      = null;
         IconCategory    = null;
         TxtCategory     = null;
         IconDescription = null;
         TxtDescription  = null;
         TxtAddQuestion  = null;
         MRecycler       = null;
         MAdapter        = null;
         LayoutManager   = null;
         TypeDialog      = null;
         CategoryId      = null;
         JobTypeId       = null;
         SalaryDateId    = null;
         CurrencyId      = null;
         ImagePath       = null;
         PageId          = null;
         Lat             = null;
         Lng             = null;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
예제 #4
0
 private void DestroyBasic()
 {
     try
     {
         TxtSave         = null !;
         Image           = null !;
         TxtAddImg       = null !;
         IconTitle       = null !;
         TxtTitle        = null !;
         IconLocation    = null !;
         TxtLocation     = null !;
         IconSalary      = null !;
         TxtMinimum      = null !;
         TxtMaximum      = null !;
         IconCurrency    = null !;
         TxtCurrency     = null !;
         TxtSalaryDate   = null !;
         IconJobType     = null !;
         TxtJobType      = null !;
         IconCategory    = null !;
         TxtCategory     = null !;
         IconDescription = null !;
         TxtDescription  = null !;
         TxtAddQuestion  = null !;
         MRecycler       = null !;
         MAdapter        = null !;
         LayoutManager   = null !;
         TypeDialog      = null !;
         CategoryId      = null !;
         JobTypeId       = null !;
         SalaryDateId    = null !;
         CurrencyId      = null !;
         ImagePath       = null !;
         PageId          = null !;
         Lat             = null !;
         Lng             = null !;
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
예제 #5
0
        public override View OnCreateView(LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);

            HasOptionsMenu = true;
            var view = inflater.Inflate(Resource.Layout.fragment_help, null);

            var grid = view.FindViewById <GridView>(Resource.Id.grid);

            //Get Icons
            questions = new List <Question>();


            RequestQuestionList();

            adapter         = new QuestionAdapter(Activity, questions);
            grid.Adapter    = adapter;
            grid.ItemClick += GridOnItemClick;
            return(view);
        }
예제 #6
0
        protected override void InitView()
        {
            srlBlog           = rootView.FindViewById <SwipeRefreshLayout>(Resource.Id.srl_blog);
            recyclerview_blog = rootView.FindViewById <RecyclerView>(Resource.Id.recyclerview_blog);
            srlBlog.SetColorSchemeResources(Resource.Color.colorPrimary);
            recyclerview_blog.SetLayoutManager(new LinearLayoutManager(this.Activity));

            questionPresenter = new QuestionPresenter(this);
            adapter           = new QuestionAdapter();
            loadMoreWrapper   = new LoadMoreWrapper(adapter);
            recyclerview_blog.SetAdapter(loadMoreWrapper);

            emptyView = this.Activity.LayoutInflater.Inflate(Resource.Layout.empty, (ViewGroup)recyclerview_blog.Parent, false);
            failView  = this.Activity.LayoutInflater.Inflate(Resource.Layout.fail, (ViewGroup)recyclerview_blog.Parent, false);

            srlBlog.SetOnRefreshListener(this);
            failView.SetOnClickListener(this);
            emptyView.SetOnClickListener(this);
            loadMoreWrapper.SetOnLoadMoreListener(this);
            recyclerview_blog.Post(async() =>
            {
                await questionPresenter.GetLocalQuestionListAsync(pageSize, GetQuestionType());
            });
        }