Exemplo n.º 1
0
 public NavigationViewMenu(BaseActivityWithNavigationDrawer activity, SharedPreferencesHelper sharedPreferencesHelper)
 {
     this.activity = activity;
     signInService = new SignInService();
     this.bitmapOperationService  = new BitmapOperationService();
     this.progressDialogHelper    = new ProgressDialogHelper(activity);
     this.sharedPreferencesHelper = sharedPreferencesHelper;
     this.gpsService           = GpsLocationService.GetServiceInstance(activity);
     this.googleMapsAPIService = new GoogleMapsAPIService();
     this.categoriesHelper     = new CategoriesSelectingHelper(activity, (string)this.sharedPreferencesHelper.GetSharedPreference <string>(SharedPreferencesKeys.BEARER_TOKEN));
     this.sizeSelectingHelper  = new SizeSelectingHelper(activity);
     this.appSettings          = SharedPreferencesHelper.GetAppSettings(activity);
     SetupViews(activity);
 }
Exemplo n.º 2
0
 protected override async void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     this.bitmapOperationService    = new BitmapOperationService();
     this.advertisementItemService  = new AdvertisementItemService(bearerToken);
     this.gpsLocationService        = new GpsLocationService(this, null);
     this.categoriesSelectingHelper = new CategoriesSelectingHelper(this, bearerToken);
     this.sizeSelectingHelper       = new SizeSelectingHelper(this);
     this.categoryInfoModel         = new CategoryInfoModel();
     SetContentView(Resource.Layout.AddNewAdvertisementActivity);
     base.SetupToolbar();
     SetupViews();
     photosPaths     = new List <string>();
     tempPhotosPaths = new List <string>();
     await GetExtrasIsExistAndFillForm();
 }
Exemplo n.º 3
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     this.gpsLocationService       = new GpsLocationService(this, null);
     this.advertisementItemService = new AdvertisementItemService(bearerToken);
     this.categoriesHelper         = new CategoriesSelectingHelper(this, bearerToken);
     this.sizeSelectingHelper      = new SizeSelectingHelper(this);
     SetRefreshAdvertisementAction();
     SetContentView(Resource.Layout.MainActivity);
     SetupToolbar();
     SetupDrawer();
     drawerToggle.ToolbarNavigationClickListener = this;
     advertisementsPage = 0;
     SetSortingOptionsLayout();
     SetupFab();
     SetAdvertisementsListKind();
     SetupViews();
     SetupSortingViews();
     RefreshAdvertisementList(true);
 }