コード例 #1
0
 public GhafwaAdapter(Context context, List <GhafwaDiscreption> ghafwaDiscreptions)
 {
     this.context            = context;
     ghafwaSettings          = new GhafwaSettings(context);
     this.ghafwaDiscreptions = ghafwaDiscreptions;
     alerts = new Alerts(context);
 }
コード例 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
            SetContentView(Resource.Layout.Main);
            mainToolBar = FindViewById <V7ToolBar>(Resource.Id.mainToolbar);
            //Toolbar will now take on default actionbar characteristics
            SetSupportActionBar(mainToolBar);
            SupportActionBar.Title = "غفوة";
            ghafwaButton           = FindViewById <Button>(Resource.Id.startGhafwa);
            ghafwaSettings         = new GhafwaSettings(this);
            sharedPreferences      = GetSharedPreferences("start", FileCreationMode.Private);
            isStarting             = sharedPreferences.GetBoolean("starting", false);
            if (!isStarting)
            {
                ghafwaButton.Text = "تشغيل";
            }
            else
            {
                ghafwaButton.Text = "ايقاف";
            }
            ghafwaButton.Click += GhafwaButton_Click;

            //
            rateClass = new RateClass();
        }