private void CreateTables(object sender, getDataBaseDefinitionsCompletedEventArgs e) { string Result = e.Result.ToString(); // database.Createtable(Result); Sync_.Sync trc = new Sync_.Sync(); trc.getTableDataAsync("Chauffeur", "getuser", name.Text.ToString()); trc.getTableDataCompleted += Synchron; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); database = new Database(); help = new Helpers(); database.CreateDatabase(); name = FindViewById <EditText>(Resource.Id.username); password = FindViewById <EditText>(Resource.Id.pwd); btn_cnx = FindViewById <Button>(Resource.Id.cnx); btn_cnx.Click += (object sender, EventArgs e) => { Sync_.Sync trc = new Sync_.Sync(); trc.getDataBaseDefinitionsAsync("Chauffeur"); trc.getDataBaseDefinitionsCompleted += CreateTables; }; }