private void lbDeliveries_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (m_selectedMember == null) return; var cew = new DeliveryTypeEdit(this, m_selectedMember); cew.ShowDialog(); }
private void btnAdd_Click(object sender, RoutedEventArgs e) { var c = new DeliveryType { Comment = "", IsActive = false, IsConditional = false, MinimumOrderSummaryCondition = 0, Price = 0, Id = Int32.MinValue }; var cew = new DeliveryTypeEdit(this, c); cew.ShowDialog(); if (cew.DialogResult.HasValue && cew.DialogResult.Value) { ReloadList(); } }