Example #1
0
        public static void Initialize()
        {
            Synchronizer = new Synchronizer();

            string ConsumerKey    = BaseAppUI.Properties.Settings.Default.CKey;
            string ConsumerSecret = BaseAppUI.Properties.Settings.Default.CSecret;
            string storeUrl       = BaseAppUI.Properties.Settings.Default.Url;


            //// from config file
            //string ConsumerKey = "ck_b7a72263b6bf95a345c87951f04810a120826ba9";
            //string ConsumerSecret = "cs_8e982aafabc481195e62c88f4685ea6a5fd99290";
            //string storeUrl = "http://pos.americloud.net/tastynihari/";


            //from config file
            //string ConsumerKey = "ck_4d91f552cad6f97e95cf6e61d74316dbb27ef3d6";
            //string ConsumerSecret = "cs_2ecd7c5e5f0a46958a1af4746f0da36bc82e070a";
            //string storeUrl = "http://www.pitaandkabobz.com";


            WCClient = new WooCommerceClient(storeUrl, ConsumerKey, ConsumerSecret);
            DAL      = new DALUnitOfWork();

            PrepareCompany();

            PrepareGuestUser();
        }
Example #2
0
 public App()
 {
     InitializeComponent ();
     DB = new Database ();
     Client = new WooCommerceClient (Constants.baseStoreUrl, Constants.clientId, Constants.clientKey, DB);
     mdMain = new MasterDetailPage ();
     mdMain.Master = new MenuPage () {
         Icon = "nav_btn_md.png",
         Title = " "
     };
     mdMain.Detail = new BaseNavigationPage(new ProductsPage(),"GreenColor","AlmostWhite");
     MainPage = mdMain;
 }
Example #3
0
 public App()
 {
     InitializeComponent();
     DB            = new Database();
     Client        = new WooCommerceClient(Constants.baseStoreUrl, Constants.clientId, Constants.clientKey, DB);
     mdMain        = new MasterDetailPage();
     mdMain.Master = new MenuPage()
     {
         Icon  = "nav_btn_md.png",
         Title = " "
     };
     mdMain.Detail = new BaseNavigationPage(new ProductsPage(), "GreenColor", "AlmostWhite");
     MainPage      = mdMain;
 }
Example #4
0
 public CustomerService(WooCommerceClient client) : base(client)
 {
 }
Example #5
0
 protected Service(WooCommerceClient client)
 {
     _client = client;
 }
Example #6
0
 public OrderService(WooCommerceClient client) : base(client)
 {
 }