private void SupplierListing_Click(object sender, RoutedEventArgs e) { ProductViewModel cancel = new ProductViewModel(); cancel.Cancel_Product(); SupplierListing _SL = new SupplierListing(); _SL.ShowDialog(); }
public async void Insert_Data() { Cancel_Supplier(); MessageBox.Show("Supplier Documents Added Successfully..."); SupplierListing _SL = new SupplierListing(); _SL.ShowDialog(); }
private void SupplierListing_Click(object sender, RoutedEventArgs e) { CustomerViewModel cancel = new CustomerViewModel(); cancel.Cancel_Customer(); SupplierListing _SL = new SupplierListing(); _SL.ShowDialog(); }
public async void Update_Data() { 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/SupplierAPI/SupplierUpdate/", selectSupplier); if (response.StatusCode.ToString() == "OK") { MessageBox.Show("Supplier Update Successfully"); Cancel_Supplier(); // ModalService.NavigateTo(new CustomerList(), delegate(bool returnValue) { }); SupplierListing _SL = new SupplierListing(); _SL.ShowDialog(); } }