async protected override void OnAppearing() { await SandoghcheController.GetConnection().CreateTableAsync <User>(); await SandoghcheController.GetConnection().CreateTableAsync <Roll>(); await SandoghcheController.GetConnection().CreateTableAsync <Category>(); await SandoghcheController.GetConnection().CreateTableAsync <Client>(); await SandoghcheController.GetConnection().CreateTableAsync <Product>(); await SandoghcheController.GetConnection().CreateTableAsync <Order>(); await SandoghcheController.GetConnection().CreateTableAsync <OrderDetail>(); await SandoghcheController.GetConnection().CreateTableAsync <EditedOrdersLogs>(); await SandoghcheController.GetConnection().CreateTableAsync <EditedOrderDetailsLogs>(); await SandoghcheController.GetConnection().CreateTableAsync <SandoghcheSetting>(); await SandoghcheController.GetConnection().CreateTableAsync <Accounting>(); await SandoghcheController.GetConnection().CreateTableAsync <UserRoll>(); lblQuote.Text = await SandoghcheController.GetQuote(); lblQuote.Text = await SandoghcheController.GetQuote(); base.OnAppearing(); }
async protected override void OnAppearing() { var settings = await SandoghcheController.GetConnection().Table <SandoghcheSetting>().FirstOrDefaultAsync(); if (settings == null) { await DisplayAlert("خطا", "تنظیمات سیستم هنوز اعمال نشده است", "باشه"); await Navigation.PushAsync(new SettingsPage()); } lblQuote.Text = await SandoghcheController.GetQuote(); base.OnAppearing(); }
async protected override void OnAppearing() { lblQuote.Text = await SandoghcheController.GetQuote(); base.OnAppearing(); }