private void AddShopBtn_Click(object sender, RoutedEventArgs e) { ShopAddForm shopAdd = new ShopAddForm(); shopAdd.ShowDialog(); ShopListBox.ItemsSource = null; ShopListBox.ItemsSource = DBHelper.GetContext().Shop.ToList(); }
//跳轉到新增窗口 private void btn_add_Click(object sender, EventArgs e) { ShopAddForm shopForm = new ShopAddForm(); shopForm.ShowDialog(); }