private void Button_Click_1(object sender, RoutedEventArgs e) { try { customer_services c = new customer_services(LB.SelectedValue); c.ShowDialog(); Fill_DG_Services(); } catch { } }
private void EP_Services_Add(object sender, EventArgs e) { try { customer_services c = new customer_services(LB.SelectedValue); c.ShowDialog(); Fill_DG_Services(); } catch { } }
private void EP_Services_Edit(object sender, EventArgs e) { try { if (LB.SelectedIndex != -1) { customer_services c = new customer_services(LB.SelectedValue, ((DataRowView)Services_DG.SelectedItem)["cs_id"]); c.ShowDialog(); Fill_DG_Services(); } } catch { } }