Exemplo n.º 1
0
        private void ProductListing_Click(object sender, RoutedEventArgs e)
        {
            CustomerViewModel cancel = new CustomerViewModel();

            cancel.Cancel_Customer();
            Product_Listing _PL = new Product_Listing();

            _PL.ShowDialog();
        }
Exemplo n.º 2
0
        private void ProductListing_Click(object sender, RoutedEventArgs e)
        {
            //Cance_Supplier();
            ProductViewModel cancel = new ProductViewModel();

            cancel.Cancel_Product();
            Product_Listing _PL = new Product_Listing();

            _PL.ShowDialog();
        }
Exemplo n.º 3
0
        public async void Insert_Data()
        {
            foreach (System.Windows.Window window in System.Windows.Application.Current.Windows)
            {
                if (window.DataContext == this)
                {
                    window.Close();
                }
            }
            MessageBox.Show("All Product Details Added Successfully...");
            Product_Listing _PL = new Product_Listing();

            _PL.ShowDialog();
        }
Exemplo n.º 4
0
        public async void Update_Product()
        {
            HttpClient client = new HttpClient();

            client.BaseAddress = new Uri(GlobalData.gblApiAdress);
            //selectDelivery.COMPANY_ID = Convert.ToInt32(App.Current.Properties["Company_Id"].ToString());
            client.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json"));
            client.Timeout = new TimeSpan(500000000000);
            var response = await client.PostAsJsonAsync("api/ProductAPI/ProductUpdate/", selectProduct);

            if (response.StatusCode.ToString() == "OK")
            {
                MessageBox.Show("Product Update Successfully");
                Cancel_Product();
                //ModalService.NavigateTo(new Product_Listing(), delegate(bool returnValue) { });
                Product_Listing _PL = new Product_Listing();
                _PL.ShowDialog();
            }
        }