Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.generate_report_layout);
            BookkeeperManager bookkeeper = BookkeeperManager.Instance;

            Button taxReportButton = FindViewById <Button>(Resource.Id.TaxReport);

            taxReportButton.Click += delegate
            {
                SetContentView(Resource.Layout.show_tax_report_layout);
                TextView textView = FindViewById <TextView>(Resource.Id.TaxReportTextView);
                textView.Text = bookkeeper.GetTaxReport();
            };
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_create_reports);

            BookkeeperManager bookkeeperManager = BookkeeperManager.Instance;

            accountReportsButton = FindViewById <Button>(Resource.Id.account_report_button);
            taxReportButton      = FindViewById <Button>(Resource.Id.tax_report_button);
            reportTV             = FindViewById <TextView>(Resource.Id.report_text);

            accountReportsButton.Click += delegate {
                reportTV.Text = bookkeeperManager.GetAccountReport();
            };

            taxReportButton.Click += delegate {
                reportTV.Text = bookkeeperManager.GetTaxReport();
            };
        }