private void View_Click(object sender, RoutedEventArgs e) { if (VM.SelectedDeal is null) { MessageBox.Show("Choose A Deal"); } else { Window w2 = new Add_Deal(service, (VM.SelectedDeal.deal_id)); w2.Show(); this.Close(); } }
private void Button_Click(object sender, RoutedEventArgs e) { Window win3 = new Add_Deal(service, null); win3.Show(); }