private void Button_ProductModify_Click(object sender, RoutedEventArgs e) { string[] arrayTemp = TextBlock_Product.Text.Split(new string[] { System.Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); c_Response.m_EmptyProduct(arrayTemp, 2); }
private void Button_Empty_Click(object sender, RoutedEventArgs e) { if (TableCatalogEmpty == null) { MessageBox.Show("Błąd, Dodaj produkty do listy..."); return; } if (c_responseFromService.m_EmptyProduct(TableCatalogEmpty, 0)) { MessageBox.Show("OK!!", "Operacja zakończona z sukcesem."); } else { MessageBox.Show("Błąd", "Wystąpił pewien błąd..."); } Ean.Focus(); }
private void Button_Empty_Click(object sender, RoutedEventArgs e) { if (textBoxCatalog.Text == "") { MessageBox.Show("Błąd, wyszukaj produkt..."); textboxactive(); return; } string[] tempArray = new string[1]; tempArray[0] = textBoxCatalog.Text; if (c_Response.m_EmptyProduct(tempArray, 0)) { MessageBox.Show("OK!!", "Operacja zakończona z sukcesem."); } else { MessageBox.Show("Błąd", "Wystąpił pewien błąd..."); } textboxactive(); }