private void EditButton_Click(object sender, RoutedEventArgs e) { var EditOfferWindow = new AddOfferSWindow(OfferSDataGrid.SelectedItem as Offers); if (EditOfferWindow.ShowDialog() == true) { OfferSList = Core.Root.Offers.ToArray(); } }
private void AddButton_Click(object sender, RoutedEventArgs e) { var NewOfferWindow = new AddOfferSWindow(new Offers()); if (NewOfferWindow.ShowDialog() == true) { OfferSList = Core.Root.Offers.ToArray(); } }