protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.formdinamico); var modelForm = new FormDinamicoModel() { Db = new FormDinamicoDA(SQLite_Android.DB.dataBase), IdVisita = Intent.GetStringExtra("idVisita"), IdProduto = Intent.GetStringExtra("idProduto") }; controller = new FormDinamicoCon(Intent.GetStringExtra("idVisita"), Intent.GetStringExtra("idProduto"), false, modelForm); uiform = new UIFormDinamico(this, FindViewById <LinearLayout>(Resource.Id.formulario), controller); model = new GenericActivityModel { dbGenericActivity = new GenericActDA(SQLite_Android.DB.dataBase) }; camera = new Camera(BaseContext); lastTagFotoSelected = null; isDoneForm = false; model.myToolbar = modelActivity.myToolbar; model.gps = modelActivity.gps; model.dialog = modelActivity.dialog; model.dbGenericActivity = modelActivity.dbGenericActivity; isToRunning = false; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds); modelActivity = new GenericActivityModel() { dbGenericActivity = new GenericActDA(SQLite_Android.DB.dataBase), gps = GPS.GetGPSTracker(ApplicationContext), myToolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar) }; controller = new GenericCon(modelActivity); HockeyApp.Android.Metrics.MetricsManager.Register(Application); }