public App()
        {
            //if (Debugger.IsAttached)
            //    Preferences.Clear();

            InitializeComponent();
            Sharpnado.Shades.Initializer.Initialize(loggerEnable: false);

            var cct = new CreateCartTable();

            cct.CreateTable();


            //MainPage = new MainPage();
            //MainPage = new LoginView();
            //MainPage = new ContactView();
            //MainPage = new NavigationPage(new SettingsPage());

            string uname = Preferences.Get("Username", string.Empty);

            if (string.IsNullOrEmpty(uname))
            {
                MainPage = new LoginView();
            }
            else
            {
                MainPage = new NavigationPage(new ProductsView());
            }
        }
示例#2
0
        public MainPage()
        {
            InitializeComponent();
            //Create cart table
            var createTable = new CreateCartTable();

            createTable.CreateTable();
        }
示例#3
0
        private void ButtonCart_Clicked(object sender, EventArgs e)
        {
            var cct = new CreateCartTable();

            if (cct.CreateTable())
            {
                DisplayAlert("Success", "Table has been created", "OK");
            }
            else
            {
                DisplayAlert("Error", "Error while creating table", "OK");
            }
        }
        async void ButtonCart_Clicked(System.Object sender, System.EventArgs e)
        {
            var bbc = new CreateCartTable();

            if (bbc.CreateTable())
            {
                await  DisplayAlert("Succes", "CartTable created", "ok");
            }
            else
            {
                await  DisplayAlert("Error", "Error while creating", "ok");
            }
        }
示例#5
0
        private void ButtonCart_Clicked(object sender, EventArgs e)
        {
            var cct = new CreateCartTable();

            if (cct.CreateTable())
            {
                DisplayAlert("Operation Reussie", "table de carte créer", "Ok");
            }
            else
            {
                DisplayAlert("Error", "erreur lors de la creation de la table", "Ok");
            }
        }
        void ButtonCart_Clicked(System.Object sender, System.EventArgs e)
        {
            var cct = new CreateCartTable();

            if (cct.CreateTable())
            {
                DisplayAlert("Başarılı", "Cart Table olusturuldu", "TAMAM");
            }
            else
            {
                DisplayAlert("Hata", "Tablo olusurken hata", "TAMAM");
            }
        }